Disable polling in time_date sensor (#106881)

This commit is contained in:
Erik Montnemery 2024-01-02 16:50:07 +01:00 committed by GitHub
parent a7f4d426ee
commit e7b0bf2453
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]