From e7b0bf24534a1c069c05e499084797e54737a862 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 2 Jan 2024 16:50:07 +0100 Subject: [PATCH] Disable polling in time_date sensor (#106881) --- homeassistant/components/time_date/sensor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/time_date/sensor.py b/homeassistant/components/time_date/sensor.py index d3453c70b38..c00d362428b 100644 --- a/homeassistant/components/time_date/sensor.py +++ b/homeassistant/components/time_date/sensor.py @@ -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]