Skip to content

Commit

Permalink
Uses PolledSmartEnergySummation for ZLinky (#86960)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored and balloob committed Jan 31, 2023
1 parent 6a17100 commit d39d4d6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions homeassistant/components/zha/sensor.py
Expand Up @@ -511,7 +511,7 @@ async def async_update(self) -> None:
models={"ZLinky_TIC"},
)
class Tier1SmartEnergySummation(
SmartEnergySummation, id_suffix="tier1_summation_delivered"
PolledSmartEnergySummation, id_suffix="tier1_summation_delivered"
):
"""Tier 1 Smart Energy Metering summation sensor."""

Expand All @@ -524,7 +524,7 @@ class Tier1SmartEnergySummation(
models={"ZLinky_TIC"},
)
class Tier2SmartEnergySummation(
SmartEnergySummation, id_suffix="tier2_summation_delivered"
PolledSmartEnergySummation, id_suffix="tier2_summation_delivered"
):
"""Tier 2 Smart Energy Metering summation sensor."""

Expand All @@ -537,7 +537,7 @@ class Tier2SmartEnergySummation(
models={"ZLinky_TIC"},
)
class Tier3SmartEnergySummation(
SmartEnergySummation, id_suffix="tier3_summation_delivered"
PolledSmartEnergySummation, id_suffix="tier3_summation_delivered"
):
"""Tier 3 Smart Energy Metering summation sensor."""

Expand All @@ -550,7 +550,7 @@ class Tier3SmartEnergySummation(
models={"ZLinky_TIC"},
)
class Tier4SmartEnergySummation(
SmartEnergySummation, id_suffix="tier4_summation_delivered"
PolledSmartEnergySummation, id_suffix="tier4_summation_delivered"
):
"""Tier 4 Smart Energy Metering summation sensor."""

Expand All @@ -563,7 +563,7 @@ class Tier4SmartEnergySummation(
models={"ZLinky_TIC"},
)
class Tier5SmartEnergySummation(
SmartEnergySummation, id_suffix="tier5_summation_delivered"
PolledSmartEnergySummation, id_suffix="tier5_summation_delivered"
):
"""Tier 5 Smart Energy Metering summation sensor."""

Expand All @@ -576,7 +576,7 @@ class Tier5SmartEnergySummation(
models={"ZLinky_TIC"},
)
class Tier6SmartEnergySummation(
SmartEnergySummation, id_suffix="tier6_summation_delivered"
PolledSmartEnergySummation, id_suffix="tier6_summation_delivered"
):
"""Tier 6 Smart Energy Metering summation sensor."""

Expand Down

0 comments on commit d39d4d6

Please sign in to comment.