Skip to content

Commit

Permalink
Fix error when car doesn't support indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
itchannel committed Oct 12, 2023
1 parent 90210fb commit f3a6032
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 f3a6032

Please sign in to comment.