Skip to content

Commit

Permalink
fix connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
Giga77 committed Mar 29, 2024
1 parent db96088 commit b4a97ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/ecole_directe/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def async_setup_entry(
if (
coordinator.data is not None
and "session" in coordinator.data
and "eleves" in coordinator.data["session"]
and coordinator.data["session"].eleves is not None
):
for eleve in coordinator.data["session"].eleves:
sensors.append(EDChildSensor(coordinator, eleve))
Expand Down

0 comments on commit b4a97ff

Please sign in to comment.