Skip to content

Commit

Permalink
Merge pull request #148 from itchannel/1.30
Browse files Browse the repository at this point in the history
1.30
  • Loading branch information
itchannel authored Dec 21, 2021
2 parents 0dd4599 + cd9d4f1 commit 6b35a05
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion custom_components/fordpass/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ async def validate_input(hass: core.HomeAssistant, data):
vinfound = True
if vinfound == False:
_LOGGER.debug("Vin not found in account, Is your VIN valid?")

if not result:
_LOGGER.error("Failed to authenticate with fordpass")
raise CannotConnect
Expand Down
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.29",
"version": "0.1.30",
"requirements": ["dotted==0.1.8"],
"ssdp": [],
"zeroconf": [],
Expand Down
6 changes: 3 additions & 3 deletions custom_components/fordpass/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ def get_value(self, ftype):
if self.options[CONF_DISTANCE_UNIT] != None:
if self.options[CONF_DISTANCE_UNIT] == "mi":
return round(
float(self.coordinator.data[self.sensor]["value"])
float(self.coordinator.data["elVehDTE"]["value"])
/ 1.60934
)
else:
return self.coordinator.data[self.sensor]["value"]
return self.coordinator.data["elVehDTE"]["value"]
else:
return self.coordinator.data[self.sensor]["value"]
return self.coordinator.data["elVehDTE"]["value"]
else:
return "Unsupported"
elif self.sensor == "zoneLighting":
Expand Down
1 change: 1 addition & 0 deletions info.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

# **Changelog**
- Fix for elvDTE error
### Version 1.29
- Disabled guard mode
- Fixed elvDTE units
Expand Down

0 comments on commit 6b35a05

Please sign in to comment.