From ec61ed5a5f61be1056b931c14047865715b3b02f Mon Sep 17 00:00:00 2001 From: Lars Kusch Date: Wed, 9 Oct 2024 06:32:44 +0200 Subject: [PATCH] Small fixes --- custom_components/solvis_control/manifest.json | 2 +- custom_components/solvis_control/number.py | 2 +- custom_components/solvis_control/select.py | 2 +- custom_components/solvis_control/switch.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/solvis_control/manifest.json b/custom_components/solvis_control/manifest.json index f94b7a9..8f9172b 100644 --- a/custom_components/solvis_control/manifest.json +++ b/custom_components/solvis_control/manifest.json @@ -9,5 +9,5 @@ "iot_class": "local_polling", "issue_tracker": "https://github.com/LarsK1/hass_solvis_control/issues", "requirements": ["pymodbus"], - "version": "1.1.0-rc1" + "version": "1.1.0-rc2" } diff --git a/custom_components/solvis_control/number.py b/custom_components/solvis_control/number.py index 421e468..57e36dd 100644 --- a/custom_components/solvis_control/number.py +++ b/custom_components/solvis_control/number.py @@ -164,4 +164,4 @@ async def async_set_native_value(self, value: float) -> None: except ConnectionException: _LOGGER.warning("Couldn't connect to device") finally: - await self.coordinator.modbus.close() + self.coordinator.modbus.close() diff --git a/custom_components/solvis_control/select.py b/custom_components/solvis_control/select.py index 71dd918..58aa615 100644 --- a/custom_components/solvis_control/select.py +++ b/custom_components/solvis_control/select.py @@ -151,4 +151,4 @@ async def async_select_option(self, option: str) -> None: except ConnectionException: _LOGGER.warning("Couldn't connect to device") finally: - await self.coordinator.modbus.close() + self.coordinator.modbus.close() diff --git a/custom_components/solvis_control/switch.py b/custom_components/solvis_control/switch.py index 36a2a26..5b233ca 100644 --- a/custom_components/solvis_control/switch.py +++ b/custom_components/solvis_control/switch.py @@ -165,4 +165,4 @@ async def async_turn_off(self, **kwargs) -> None: except ConnectionException: _LOGGER.warning("Couldn't connect to device") finally: - await self.coordinator.modbus.close() + self.coordinator.modbus.close()