mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Remove unnecessary should poll from camera classes (#41228)
This commit is contained in:
parent
228e167b03
commit
f17089e46e
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user