Disable polling in time_date sensor (#106881)
This commit is contained in:
parent
a7f4d426ee
commit
e7b0bf2453
1 changed files with 2 additions and 0 deletions
|
@ -78,6 +78,8 @@ async def async_setup_platform(
|
|||
class TimeDateSensor(SensorEntity):
|
||||
"""Implementation of a Time and Date sensor."""
|
||||
|
||||
_attr_should_poll = False
|
||||
|
||||
def __init__(self, hass: HomeAssistant, option_type: str) -> None:
|
||||
"""Initialize the sensor."""
|
||||
self._name = OPTION_TYPES[option_type]
|
||||
|
|
Loading…
Add table
Reference in a new issue