Skip to content

Commit

Permalink
Fix pour issue #442
Browse files Browse the repository at this point in the history
Causé par un upstream PR dans le codebase de HA. Voir home-assistant/core##110685
  • Loading branch information
ic-dev21 committed Jun 27, 2024
1 parent 968eca5 commit e233fe8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom_components/hilo/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
# Note ic-dev21: we'll stay at 300 until proper fix
EVENT_SCAN_INTERVAL_REDUCTION = 300
NOTIFICATION_SCAN_INTERVAL = 1800
MAX_SUB_INTERVAL = 120
MIN_SCAN_INTERVAL = 60
REWARD_SCAN_INTERVAL = 7200

Expand Down
2 changes: 1 addition & 1 deletion custom_components/hilo/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"iot_class": "cloud_push",
"issue_tracker": "https://github.com/dvd-dev/hilo/issues",
"requirements": ["python-hilo>=2024.6.1"],
"version": "2024.6.2"
"version": "2024.7.1"
}
2 changes: 2 additions & 0 deletions custom_components/hilo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
HILO_ENERGY_TOTAL,
HILO_SENSOR_CLASSES,
LOG,
MAX_SUB_INTERVAL,
NOTIFICATION_SCAN_INTERVAL,
REWARD_SCAN_INTERVAL,
TARIFF_LIST,
Expand Down Expand Up @@ -294,6 +295,7 @@ def __init__(self, hilo, device):

super().__init__(
integration_method=METHOD_LEFT,
max_sub_interval=timedelta(seconds=MAX_SUB_INTERVAL),
name=self._attr_name,
round_digits=2,
source_entity=self._source,
Expand Down

0 comments on commit e233fe8

Please sign in to comment.