From 5164af2054013a7740fd32db832a18d088f079a7 Mon Sep 17 00:00:00 2001 From: Floris272 Date: Thu, 10 Aug 2023 14:50:56 +0000 Subject: [PATCH] fix --- custom_components/blue_current/manifest.json | 2 +- custom_components/blue_current/switch.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/blue_current/manifest.json b/custom_components/blue_current/manifest.json index b943946..bf5e646 100755 --- a/custom_components/blue_current/manifest.json +++ b/custom_components/blue_current/manifest.json @@ -6,6 +6,6 @@ "documentation": "https://www.home-assistant.io/integrations/blue_current", "iot_class": "cloud_push", "issue_tracker": "https://github.com/bluecurrent/ha-bluecurrent/issues", - "requirements": ["bluecurrent-api==1.0.4"], + "requirements": ["bluecurrent-api==1.0.5"], "version": "1.0.0" } diff --git a/custom_components/blue_current/switch.py b/custom_components/blue_current/switch.py index 78e186e..0b57c26 100755 --- a/custom_components/blue_current/switch.py +++ b/custom_components/blue_current/switch.py @@ -136,7 +136,7 @@ def update_from_latest_data(self) -> None: activity = self.connector.charge_points[self.evse_id].get(ACTIVITY) if new_value is not None and activity == AVAILABLE: - self._attr_is_on = new_value = new_value + self._attr_is_on = new_value self._attr_available = True else: