Remove unnecessary should poll from binary sensor classes (#41221)
parent
dd26ab6b4e
commit
e75557c1f5
|
@ -115,11 +115,6 @@ class Concord232ZoneSensor(BinarySensorEntity):
|
|||
"""Return the class of this sensor, from DEVICE_CLASSES."""
|
||||
return self._zone_type
|
||||
|
||||
@property
|
||||
def should_poll(self):
|
||||
"""No polling needed."""
|
||||
return True
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the name of the binary sensor."""
|
||||
|
|
|
@ -38,11 +38,6 @@ class MaxCubeShutter(BinarySensorEntity):
|
|||
self._cubehandle = handler
|
||||
self._state = None
|
||||
|
||||
@property
|
||||
def should_poll(self):
|
||||
"""Return the polling state."""
|
||||
return True
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the name of the BinarySensorEntity."""
|
||||
|
|
Loading…
Reference in New Issue