Remove unnecessary should poll from camera classes (#41228)
This commit is contained in:
1 parent
228e167b03
commit
f17089e46e
1 file changed
-8
@@ -40,14 +40,6 @@ class DemoCamera(Camera):
|
||||
"""Return the name of this camera."""
|
||||
return self._name
|
||||
|
||||
@property
|
||||
def should_poll(self):
|
||||
"""Demo camera doesn't need poll.
|
||||
|
||||
Need explicitly call async_write_ha_state() after state changed.
|
||||
"""
|
||||
return False
|
||||
|
||||
@property
|
||||
def supported_features(self):
|
||||
"""Camera support turn on/off features."""
|
||||
|
||||
Reference in new issue
Block a user