zha: Don't poll switch devices (#14560)

This commit is contained in:
David F. Mulcahey authored and Russell Cloran committed 2018-05-20 16:00:51 -07:00
1 parent c8ad9c4daa
commit 4395217031
1 file changed
+5
@@ -211,6 +211,11 @@ class Switch(zha.Entity, BinarySensorDevice):
general.LevelControl.cluster_id: self.LevelListener(self),
}
@property
def should_poll(self) -> bool:
"""Let zha handle polling."""
return False
@property
def is_on(self) -> bool:
"""Return true if the binary sensor is on."""