Skip to content

Commit

Permalink
Merge pull request #55 from alexualbu/3.7.0
Browse files Browse the repository at this point in the history
3.7.0 switch payload logic to tinytuya
  • Loading branch information
leeyuentuen authored Apr 15, 2023
2 parents 888b13f + 18980bf commit 918ce17
Show file tree
Hide file tree
Showing 2 changed files with 171 additions and 110 deletions.
3 changes: 3 additions & 0 deletions custom_components/localtuya/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,10 @@ async def _make_connection(self):
is_gateway=True,
)
self.debug("Connected to gateway %s successfully", self._config_entry[CONF_HOST])
self._interface.start_heartbeat()

self.debug("Attempting to reconnect %s subdevices", str(len(self._sub_devices.items())))

# Re-add and get status of previously added sub-devices
# Note this assumes the gateway device has not been tear down
for subitem in self._sub_devices.items():
Expand Down
Loading

0 comments on commit 918ce17

Please sign in to comment.