mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +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 the name of this camera."""
|
||||||
return self._name
|
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
|
@property
|
||||||
def supported_features(self):
|
def supported_features(self):
|
||||||
"""Camera support turn on/off features."""
|
"""Camera support turn on/off features."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user