Skip to content

Commit

Permalink
fix: Not awaiting when opening a connection
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrapan committed Feb 10, 2025
1 parent 74ecb81 commit 0ac6605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/solarman/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async def get(self, runtime = 0, requests = None):

try:
if scount == 0:
self.modbus.open()
await self.modbus.open()
return result

async with asyncio.timeout(TIMINGS_UPDATE_TIMEOUT):
Expand Down

0 comments on commit 0ac6605

Please sign in to comment.