Get status once per device instead of per platform
This commit is contained in:
committed by
rospogrigio
parent
b7173f3033
commit
caaf884a7a
@@ -55,7 +55,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
)
|
||||
)
|
||||
|
||||
async_add_entities(covers, True)
|
||||
async_add_entities(covers)
|
||||
|
||||
|
||||
class LocaltuyaCover(LocalTuyaEntity, CoverEntity):
|
||||
@@ -78,11 +78,6 @@ class LocaltuyaCover(LocalTuyaEntity, CoverEntity):
|
||||
)
|
||||
)
|
||||
|
||||
@property
|
||||
def available(self):
|
||||
"""Return if device is available or not."""
|
||||
return self._available
|
||||
|
||||
@property
|
||||
def supported_features(self):
|
||||
"""Flag supported features."""
|
||||
|
Reference in New Issue
Block a user