From ae7ede12531b2dd50a553ff401015553e5cccf10 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 26 Sep 2023 20:01:33 +0200 Subject: [PATCH] Call async added to hass super in Smart Meter Texas (#100445) --- homeassistant/components/smart_meter_texas/sensor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/smart_meter_texas/sensor.py b/homeassistant/components/smart_meter_texas/sensor.py index 84ad68fabc3..f54da815b26 100644 --- a/homeassistant/components/smart_meter_texas/sensor.py +++ b/homeassistant/components/smart_meter_texas/sensor.py @@ -76,6 +76,7 @@ class SmartMeterTexasSensor(CoordinatorEntity, RestoreEntity, SensorEntity): # pylint: disable-next=hass-missing-super-call async def async_added_to_hass(self): """Subscribe to updates.""" + await super().async_added_to_hass() self.async_on_remove(self.coordinator.async_add_listener(self._state_update)) # If the background update finished before