Powerview polling tdbu (#73899)

This commit is contained in:
kingy444
2022-06-23 23:37:28 +10:00
committed by GitHub
parent 8015bb98a9
commit 95abfb5748

View File

@@ -464,6 +464,15 @@ class PowerViewShadeTDBUTop(PowerViewShadeTDBU):
ATTR_POSKIND2: POS_KIND_SECONDARY,
}
@property
def should_poll(self) -> bool:
"""Certain shades create multiple entities.
Do not poll shade multiple times. One shade will return data
for both and multiple polling will cause timeouts.
"""
return False
@property
def is_closed(self):
"""Return if the cover is closed."""