Skip to content

Commit

Permalink
Merge pull request #51 from alexualbu/Fix_cover_is_connecting
Browse files Browse the repository at this point in the history
Add is_connecting property to TuyaDevice
  • Loading branch information
leeyuentuen authored Apr 10, 2023
2 parents eef61bc + 80fba6d commit 0494b43
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

1 comment on commit 0494b43

@lukii03
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hallo, Danke erstmal für ihre tolle Arbeit und Anleitung!!
Doch leider habe ich Schwierigkeiten mein Tuya Zigbee Gateway mit den Thermostaten und Sensoren hinzuzufügen. Bin noch Anfänger in sachen HA :)
also wie kann ich die Sensoren und Thermostate mit einbeziehen in HA ?? Danke
Gateway

Please sign in to comment.