Skip to content

Commit

Permalink
Merge pull request #108 from itchannel/1.20
Browse files Browse the repository at this point in the history
1.20
  • Loading branch information
itchannel authored Jul 1, 2021
2 parents 96056fe + 7240f1b commit fb90557
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/fordpass/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"config_flow": true,
"documentation": "https://github.com/itchannel/fordpass-ha",
"issue_tracker": "https://github.com/itchannel/fordpass-ha/issues",
"version": "0.1.19",
"version": "0.1.20",
"requirements": ["dotted==0.1.8"],
"ssdp": [],
"zeroconf": [],
Expand Down
1 change: 1 addition & 0 deletions custom_components/fordpass/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
for key, value in SENSORS.items():
sensor = CarSensor(entry, key, config_entry.options)
# Add support for only adding compatible sensors for the given vehicle
_LOGGER.debug(sensor.coordinator.data)
if key == "zoneLighting":
if "zoneLighting" in sensor.coordinator.data:
async_add_entities([sensor], True)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/fordpass/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def is_on(self):
return True
else:
return False
else:
return False
return True
else:
return False

Expand Down
3 changes: 3 additions & 0 deletions info.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@

# **Changelog**
### Version 1.20
- Fixed incorrect reporting of guardmode switch status

### Version 1.19
- Added null guard status handling (effects some vehicles)

Expand Down

0 comments on commit fb90557

Please sign in to comment.