Skip to content

Commit

Permalink
Merge pull request #327 from itchannel/1.54
Browse files Browse the repository at this point in the history
Fix error when car doesn't support indicators
  • Loading branch information
itchannel authored Oct 12, 2023
2 parents c15e3e5 + f3a6032 commit dbdaa35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/fordpass/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
elif key == "exhaustFluidLevel":
if "dieselExhaustFluidLevel" in sensor.coordinator.data["metrics"]:
sensors.append(sensor)
elif key == "indicators":
if "indicators" in sensor.coordinator.data["metrics"]:
sensors.append(sensor)
else:
sensors.append(sensor)
async_add_entities(sensors, True)
Expand Down

0 comments on commit dbdaa35

Please sign in to comment.