Skip to content

Commit

Permalink
fix window position bug
Browse files Browse the repository at this point in the history
  • Loading branch information
itchannel committed Feb 16, 2023
1 parent 93fde73 commit d9c8b7d
Show file tree
Hide file tree
Showing 3 changed files with 4 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 @@ -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.44",
"version": "0.1.45",
"requirements": [],
"ssdp": [],
"zeroconf": [],
Expand Down
2 changes: 1 addition & 1 deletion custom_components/fordpass/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def get_value(self, ftype):
return "Unsupported"
status = "Closed"
for key, value in self.coordinator.data[self.sensor].items():
if "open" or "btwn" in value["value"].lower():
if "open" in value["value"].lower():
status = "Open"
return status
elif self.sensor == "lastRefresh":
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.45
- Fix window position reporting as open always
### Version 1.44
- Fix incorrect window position status
- Add reload integration service
Expand Down

0 comments on commit d9c8b7d

Please sign in to comment.