Skip to content

Commit

Permalink
Improve D103 check
Browse files Browse the repository at this point in the history
  • Loading branch information
krasnoukhov committed Oct 18, 2024
1 parent 92ed1c1 commit 55cc7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/smart_maic/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ async def async_setup_entry(
)

# NOTE: check if we're dealing with 3-phase device like D103
if coordinator.data.get("A1"):
if "A1" in coordinator.data:
async_add_entities(
[
SmartMaicPhaseTotalSensor(hass, coordinator, entry, description)
Expand Down

0 comments on commit 55cc7db

Please sign in to comment.