From 9977563e51c9900d0ea34fd6491ffaea197e6e0c Mon Sep 17 00:00:00 2001 From: Lukas Horak Date: Tue, 20 Aug 2024 20:03:16 +0300 Subject: [PATCH] Remove unnecessary client connection in async_write_register --- custom_components/solax_modbus/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/custom_components/solax_modbus/__init__.py b/custom_components/solax_modbus/__init__.py index 0d710612..41865b69 100644 --- a/custom_components/solax_modbus/__init__.py +++ b/custom_components/solax_modbus/__init__.py @@ -564,7 +564,6 @@ async def async_lowlevel_write_register(self, unit, address, payload): async def async_write_register(self, unit, address, payload): """Write register.""" - await self.async_connect() awake = self.plugin.isAwake(self.data) if awake: return await self.async_lowlevel_write_register(unit, address, payload)