Skip to content

Commit

Permalink
Update hub.py
Browse files Browse the repository at this point in the history
Fix bug with adding new inverter
  • Loading branch information
astraliens committed Mar 15, 2024
1 parent 3891a81 commit 68af0ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/inverter_xpert_king/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def hub_id(self) -> str:
"""ID for hub."""
return self._id

#async def test_connection(self) -> bool:
# """Test connectivity with inverter"""
# #await asyncio.sleep(1)
# return self.inverter_client.get_mode()
async def test_connection(self) -> bool:
"""Test connectivity with inverter"""
#await asyncio.sleep(1)
return self.inverter_client.get_mode()


class Inverter:
Expand Down

0 comments on commit 68af0ab

Please sign in to comment.