Skip to content

Commit

Permalink
Remove unnecessary client connection in async_write_register
Browse files Browse the repository at this point in the history
  • Loading branch information
lhorak committed Aug 20, 2024
1 parent e665481 commit 9977563
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion custom_components/solax_modbus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9977563

Please sign in to comment.