mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Update mill library 0.12.5 (#144911)
* Update mill library 0.12.5 Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net> * Update mill library 0.12.5 Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net> --------- Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
This commit is contained in:
parent
0eb6c88bc5
commit
460f02ede5
@ -26,7 +26,7 @@ from .const import DOMAIN
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
TWO_YEARS = 2 * 365 * 24
|
TWO_YEARS_DAYS = 2 * 365
|
||||||
|
|
||||||
|
|
||||||
class MillDataUpdateCoordinator(DataUpdateCoordinator):
|
class MillDataUpdateCoordinator(DataUpdateCoordinator):
|
||||||
@ -91,7 +91,7 @@ class MillHistoricDataUpdateCoordinator(DataUpdateCoordinator):
|
|||||||
if not last_stats or not last_stats.get(statistic_id):
|
if not last_stats or not last_stats.get(statistic_id):
|
||||||
hourly_data = (
|
hourly_data = (
|
||||||
await self.mill_data_connection.fetch_historic_energy_usage(
|
await self.mill_data_connection.fetch_historic_energy_usage(
|
||||||
dev_id, n_days=TWO_YEARS
|
dev_id, n_days=TWO_YEARS_DAYS
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
hourly_data = dict(sorted(hourly_data.items(), key=lambda x: x[0]))
|
hourly_data = dict(sorted(hourly_data.items(), key=lambda x: x[0]))
|
||||||
|
@ -7,5 +7,5 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/mill",
|
"documentation": "https://www.home-assistant.io/integrations/mill",
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["mill", "mill_local"],
|
"loggers": ["mill", "mill_local"],
|
||||||
"requirements": ["millheater==0.12.3", "mill-local==0.3.0"]
|
"requirements": ["millheater==0.12.5", "mill-local==0.3.0"]
|
||||||
}
|
}
|
||||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -1424,7 +1424,7 @@ microBeesPy==0.3.5
|
|||||||
mill-local==0.3.0
|
mill-local==0.3.0
|
||||||
|
|
||||||
# homeassistant.components.mill
|
# homeassistant.components.mill
|
||||||
millheater==0.12.3
|
millheater==0.12.5
|
||||||
|
|
||||||
# homeassistant.components.minio
|
# homeassistant.components.minio
|
||||||
minio==7.1.12
|
minio==7.1.12
|
||||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -1197,7 +1197,7 @@ microBeesPy==0.3.5
|
|||||||
mill-local==0.3.0
|
mill-local==0.3.0
|
||||||
|
|
||||||
# homeassistant.components.mill
|
# homeassistant.components.mill
|
||||||
millheater==0.12.3
|
millheater==0.12.5
|
||||||
|
|
||||||
# homeassistant.components.minio
|
# homeassistant.components.minio
|
||||||
minio==7.1.12
|
minio==7.1.12
|
||||||
|
Loading…
x
Reference in New Issue
Block a user