From 93fde7389b4bf3fa7a109a47e6371487f513c66e Mon Sep 17 00:00:00 2001 From: steve Date: Mon, 13 Feb 2023 12:09:58 +1000 Subject: [PATCH 1/2] Update info and manifest --- custom_components/fordpass/manifest.json | 2 +- info.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_components/fordpass/manifest.json b/custom_components/fordpass/manifest.json index 4695988..9f98c66 100644 --- a/custom_components/fordpass/manifest.json +++ b/custom_components/fordpass/manifest.json @@ -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.43", + "version": "0.1.44", "requirements": [], "ssdp": [], "zeroconf": [], diff --git a/info.md b/info.md index 2aca455..c446387 100644 --- a/info.md +++ b/info.md @@ -1,4 +1,7 @@ ## **Changelog** +### Version 1.44 +- Fix incorrect window position status +- Add reload integration service ### Version 1.43 - Add DPF status on supported vehicles - Incorrect vehicle refresh time (@ronytomen) From d9c8b7d036a8c5edf39916be87dedb2176f7a8d6 Mon Sep 17 00:00:00 2001 From: steve Date: Thu, 16 Feb 2023 19:36:14 +1000 Subject: [PATCH 2/2] fix window position bug --- custom_components/fordpass/manifest.json | 2 +- custom_components/fordpass/sensor.py | 2 +- info.md | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/custom_components/fordpass/manifest.json b/custom_components/fordpass/manifest.json index 9f98c66..c545d66 100644 --- a/custom_components/fordpass/manifest.json +++ b/custom_components/fordpass/manifest.json @@ -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": [], diff --git a/custom_components/fordpass/sensor.py b/custom_components/fordpass/sensor.py index 5737717..844a467 100644 --- a/custom_components/fordpass/sensor.py +++ b/custom_components/fordpass/sensor.py @@ -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": diff --git a/info.md b/info.md index c446387..dd27669 100644 --- a/info.md +++ b/info.md @@ -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