Skip to content

Commit

Permalink
Fix energy models
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Jul 1, 2024
1 parent ed6b3e5 commit c2c7839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/teslemetry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:

# Enrich devices
for energysite in energysites:
models = []
models = set()
for gateway in energysite.info_coordinator.data.get("components_gateways", []):
if gateway.get("part_name"):
models.add(gateway["part_name"])
Expand Down

0 comments on commit c2c7839

Please sign in to comment.