From c48ee9c68841a5a8617bd2ec30c071fe2d2416cd Mon Sep 17 00:00:00 2001 From: Victor Ortiz Heredia Date: Sun, 18 Jun 2023 13:30:46 +0200 Subject: [PATCH] Fix source entity for new HA version --- custom_components/ingeteam_modbus/sensor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/ingeteam_modbus/sensor.py b/custom_components/ingeteam_modbus/sensor.py index 916a2fa..668bd83 100644 --- a/custom_components/ingeteam_modbus/sensor.py +++ b/custom_components/ingeteam_modbus/sensor.py @@ -214,6 +214,7 @@ def __init__( self._unit_time_str = unit_time self._attr_icon = "mdi:chart-histogram" self._attr_extra_state_attributes = {ATTR_SOURCE_ID: source_entity} + self._source_entity = source_entity self._hub = hub @property