Get status once per device instead of per platform

This commit is contained in:
Pierre Ståhl
2020-09-26 22:02:05 +02:00
committed by rospogrigio
parent b7173f3033
commit caaf884a7a
8 changed files with 76 additions and 29 deletions

View File

@@ -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."""