Skip to content

Commit

Permalink
Merge pull request #254 from itchannel/1.46
Browse files Browse the repository at this point in the history
1.46
  • Loading branch information
itchannel authored Feb 16, 2023
2 parents ba92869 + 4ce6208 commit ea61d10
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion custom_components/fordpass/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"integration_type": "device",
"documentation": "https://github.com/itchannel/fordpass-ha",
"issue_tracker": "https://github.com/itchannel/fordpass-ha/issues",
"version": "0.1.45",
"version": "0.1.46",
"requirements": [],
"ssdp": [],
"zeroconf": [],
Expand Down
10 changes: 6 additions & 4 deletions custom_components/fordpass/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
if sensor.coordinator.data["elVehDTE"] != None:
sensors.append(sensor)
elif key == "dieselSystemStatus":
if "dieselSystemStatus" in sensor.coordinator.data and sensor.coordinator.data["dieselSystemStatus"]["filterRegenerationStatus"] != None:
sensors.append(sensor)
if sensor.coordinator.data.get("dieselSystemStatus", {}):
if sensor.coordinator.data.get("dieselSystemStatus", {}).get("filterRegenerationStatus"):
sensors.append(sensor)
elif key == "exhaustFluidLevel":
if "exhaustFluidLevel" in sensor.coordinator.data and sensor.coordinator.data["dieselSystemStatus"]["exhaustFluidLevel"] != None:
sensors.append(sensor)
if sensor.coordinator.data.get("dieselSystemStatus", {}):
if sensor.coordinator.data.get("dieselSystemStatus", {}).get("exhaustFluidLevel"):
sensors.append(sensor)
else:
sensors.append(sensor)
async_add_entities(sensors, True)
Expand Down
2 changes: 2 additions & 0 deletions info.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## **Changelog**
### Version 1.46
- Fix diesel filter error
### Version 1.45
- Fix window position reporting as open always
### Version 1.44
Expand Down

0 comments on commit ea61d10

Please sign in to comment.