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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

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