From 4395217031f41b86ed54e1083998b03448ab9222 Mon Sep 17 00:00:00 2001 From: "David F. Mulcahey" Date: Sun, 20 May 2018 19:00:51 -0400 Subject: [PATCH] zha: Don't poll switch devices (#14560) --- homeassistant/components/binary_sensor/zha.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/binary_sensor/zha.py b/homeassistant/components/binary_sensor/zha.py index d3b31188760..0fd9db19d1a 100644 --- a/homeassistant/components/binary_sensor/zha.py +++ b/homeassistant/components/binary_sensor/zha.py @@ -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."""