Add serial number to Nobo hub devices (#150700)

This commit is contained in:
Joost Lekkerkerker
2025-08-15 15:32:43 +02:00
committed by GitHub
parent 9646aa232a
commit abdb48e7ce
2 changed files with 4 additions and 1 deletions

View File

@@ -69,10 +69,12 @@ class NoboGlobalSelector(SelectEntity):
self._override_type = override_type
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, hub.hub_serial)},
serial_number=hub.hub_serial,
name=hub.hub_info[ATTR_NAME],
manufacturer=NOBO_MANUFACTURER,
model=f"Nobø Ecohub ({hub.hub_info[ATTR_HARDWARE_VERSION]})",
model="Nobø Ecohub",
sw_version=hub.hub_info[ATTR_SOFTWARE_VERSION],
hw_version=hub.hub_info[ATTR_HARDWARE_VERSION],
)
async def async_added_to_hass(self) -> None:

View File

@@ -58,6 +58,7 @@ class NoboTemperatureSensor(SensorEntity):
suggested_area = hub.zones[zone_id][ATTR_NAME]
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, component[ATTR_SERIAL])},
serial_number=component[ATTR_SERIAL],
name=component[ATTR_NAME],
manufacturer=NOBO_MANUFACTURER,
model=component[ATTR_MODEL].name,