Skip to content

Commit

Permalink
Merge pull request #58 from leeyuentuen/master
Browse files Browse the repository at this point in the history
Merge master to 3.7.0
  • Loading branch information
leeyuentuen authored Apr 18, 2023
2 parents 4857a32 + 0494b43 commit cbe7840
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/localtuya/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ def __init__(self, hass, config_entry):
# This has to be done in case the device type is type_0d
for entity in config_entry[CONF_ENTITIES]:
self.dps_to_request[entity[CONF_ID]] = None

@property
def is_connecting(self):
"""Return whether device is currently connecting."""
return self._connect_task is not None

@property
def connected(self):
Expand Down

0 comments on commit cbe7840

Please sign in to comment.