-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
54 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
# Copyright (c) 2019-2022, Andrey "Limych" Khrolenok <[email protected]> | ||
# Creative Commons BY-NC-SA 4.0 International Public License | ||
# (see LICENSE.md or https://creativecommons.org/licenses/by-nc-sa/4.0/) | ||
""" | ||
The Gismeteo component. | ||
"""The Gismeteo component. | ||
For more details about this platform, please refer to the documentation at | ||
https://github.com/Limych/ha-gismeteo/ | ||
|
@@ -14,6 +13,7 @@ | |
|
||
from aiohttp import ClientConnectorError | ||
from async_timeout import timeout | ||
|
||
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN | ||
from homeassistant.components.weather import DOMAIN as WEATHER_DOMAIN | ||
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
# Copyright (c) 2019-2022, Andrey "Limych" Khrolenok <[email protected]> | ||
# Creative Commons BY-NC-SA 4.0 International Public License | ||
# (see LICENSE.md or https://creativecommons.org/licenses/by-nc-sa/4.0/) | ||
""" | ||
The Gismeteo component. | ||
"""The Gismeteo component. | ||
For more details about this platform, please refer to the documentation at | ||
https://github.com/Limych/ha-gismeteo/ | ||
""" | ||
|
||
from collections.abc import Callable | ||
from datetime import datetime | ||
from http import HTTPStatus | ||
import logging | ||
import math | ||
import time | ||
from typing import Any, Dict, Optional | ||
import xml.etree.ElementTree as etree # type: ignore | ||
from datetime import datetime | ||
from http import HTTPStatus | ||
from typing import Any, Callable, Dict, Optional | ||
|
||
from aiohttp import ClientSession | ||
|
||
from homeassistant.components.weather import ( | ||
ATTR_CONDITION_CLEAR_NIGHT, | ||
ATTR_CONDITION_CLOUDY, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
# Copyright (c) 2019-2022, Andrey "Limych" Khrolenok <[email protected]> | ||
# Creative Commons BY-NC-SA 4.0 International Public License | ||
# (see LICENSE.md or https://creativecommons.org/licenses/by-nc-sa/4.0/) | ||
""" | ||
The Gismeteo component. | ||
"""The Gismeteo component. | ||
For more details about this platform, please refer to the documentation at | ||
https://github.com/Limych/ha-gismeteo/ | ||
|
@@ -11,10 +10,10 @@ | |
import asyncio | ||
import logging | ||
|
||
import homeassistant.helpers.config_validation as cv | ||
import voluptuous as vol | ||
from aiohttp import ClientConnectorError, ClientError | ||
from async_timeout import timeout | ||
import voluptuous as vol | ||
|
||
from homeassistant import config_entries | ||
from homeassistant.config_entries import SOURCE_IMPORT | ||
from homeassistant.const import ( | ||
|
@@ -26,6 +25,7 @@ | |
CONF_SHOW_ON_MAP, | ||
) | ||
from homeassistant.core import callback | ||
import homeassistant.helpers.config_validation as cv | ||
|
||
from . import DOMAIN, get_gismeteo # pylint: disable=unused-import | ||
from .api import ApiError | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
# Copyright (c) 2019-2022, Andrey "Limych" Khrolenok <[email protected]> | ||
# Creative Commons BY-NC-SA 4.0 International Public License | ||
# (see LICENSE.md or https://creativecommons.org/licenses/by-nc-sa/4.0/) | ||
""" | ||
The Gismeteo component. | ||
"""The Gismeteo component. | ||
For more details about this platform, please refer to the documentation at | ||
https://github.com/Limych/ha-gismeteo/ | ||
|
@@ -12,8 +11,7 @@ | |
from typing import Final | ||
|
||
from homeassistant.components.sensor import DOMAIN as SENSOR | ||
from homeassistant.components.weather import ATTR_FORECAST_CONDITION | ||
from homeassistant.components.weather import DOMAIN as WEATHER | ||
from homeassistant.components.weather import ATTR_FORECAST_CONDITION, DOMAIN as WEATHER | ||
from homeassistant.const import ( | ||
ATTR_DEVICE_CLASS, | ||
ATTR_ICON, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
# Copyright (c) 2019-2022, Andrey "Limych" Khrolenok <[email protected]> | ||
# Creative Commons BY-NC-SA 4.0 International Public License | ||
# (see LICENSE.md or https://creativecommons.org/licenses/by-nc-sa/4.0/) | ||
""" | ||
The Gismeteo component. | ||
"""The Gismeteo component. | ||
For more details about this platform, please refer to the documentation at | ||
https://github.com/Limych/ha-gismeteo/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
# Copyright (c) 2019-2022, Andrey "Limych" Khrolenok <[email protected]> | ||
# Creative Commons BY-NC-SA 4.0 International Public License | ||
# (see LICENSE.md or https://creativecommons.org/licenses/by-nc-sa/4.0/) | ||
""" | ||
The Gismeteo component. | ||
"""The Gismeteo component. | ||
For more details about this platform, please refer to the documentation at | ||
https://github.com/Limych/ha-gismeteo/ | ||
|
@@ -12,6 +11,7 @@ | |
from typing import List | ||
|
||
import voluptuous as vol | ||
|
||
from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity | ||
from homeassistant.components.weather import ATTR_FORECAST_CONDITION | ||
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,3 @@ | |
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
# Copyright (c) 2019-2022, Andrey "Limych" Khrolenok <[email protected]> | ||
# Creative Commons BY-NC-SA 4.0 International Public License | ||
# (see LICENSE.md or https://creativecommons.org/licenses/by-nc-sa/4.0/) | ||
""" | ||
The Gismeteo component. | ||
"""The Gismeteo component. | ||
For more details about this platform, please refer to the documentation at | ||
https://github.com/Limych/ha-gismeteo/ | ||
|
@@ -11,6 +10,7 @@ | |
import logging | ||
|
||
import voluptuous as vol | ||
|
||
from homeassistant.components.weather import PLATFORM_SCHEMA, WeatherEntity | ||
from homeassistant.config_entries import SOURCE_IMPORT | ||
from homeassistant.const import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters