Skip to content

Commit bdcd94f

Browse files
authored
Merge pull request #322 from marpi82/marpi82-fix-issue-321
Fix issue #321
2 parents 2977c47 + 373c118 commit bdcd94f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • custom_components/sunspec

custom_components/sunspec/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def check_port(self) -> bool:
175175
f"Check_Port (ERROR): port not available on {self._host}:{self._port} - error: {sock_res}"
176176
)
177177
sock.close()
178+
time.sleep(0.1)
178179
return is_open
179180

180181
def modbus_connect(self, config=None):

0 commit comments

Comments
 (0)