Remove unnecessary should poll from camera classes (#41228)

This commit is contained in:
springstan 2020-10-04 21:26:59 +02:00 committed by GitHub
parent 228e167b03
commit f17089e46e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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