Skip to content

Commit

Permalink
Merge pull request #1006 from lhorak/remove_unnecessary_connection
Browse files Browse the repository at this point in the history
Remove unnecessary client connection in async_write_register
  • Loading branch information
wills106 authored Aug 21, 2024
2 parents e665481 + 9977563 commit e9b1c93
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 e9b1c93

Please sign in to comment.