This commit is contained in:
Home Assistant Version Control
2026-08-02 15:33:12 +00:00
parent 60dd13b52c
commit 2ce8792155
39 changed files with 1992 additions and 157 deletions
+12 -1
View File
@@ -349,7 +349,18 @@ class EnergySensor(IntegrationSensor):
identifiers={(DOMAIN, self._device.identifier)},
)
if Version(current_version) >= Version("2025.8"):
if Version(current_version) >= Version("2026.8"):
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,
unique_id=self._attr_unique_id,
unit_prefix="k",
unit_time="h",
)
elif Version(current_version) >= Version("2025.8"):
super().__init__(
hass,
integration_method=METHOD_LEFT,