mirror of
https://github.com/home-assistant/core.git
synced 2025-09-06 13:21:33 +02:00
Add serial number to Nobo hub devices (#150700)
This commit is contained in:
committed by
GitHub
parent
9646aa232a
commit
abdb48e7ce
@@ -69,10 +69,12 @@ class NoboGlobalSelector(SelectEntity):
|
|||||||
self._override_type = override_type
|
self._override_type = override_type
|
||||||
self._attr_device_info = DeviceInfo(
|
self._attr_device_info = DeviceInfo(
|
||||||
identifiers={(DOMAIN, hub.hub_serial)},
|
identifiers={(DOMAIN, hub.hub_serial)},
|
||||||
|
serial_number=hub.hub_serial,
|
||||||
name=hub.hub_info[ATTR_NAME],
|
name=hub.hub_info[ATTR_NAME],
|
||||||
manufacturer=NOBO_MANUFACTURER,
|
manufacturer=NOBO_MANUFACTURER,
|
||||||
model=f"Nobø Ecohub ({hub.hub_info[ATTR_HARDWARE_VERSION]})",
|
model="Nobø Ecohub",
|
||||||
sw_version=hub.hub_info[ATTR_SOFTWARE_VERSION],
|
sw_version=hub.hub_info[ATTR_SOFTWARE_VERSION],
|
||||||
|
hw_version=hub.hub_info[ATTR_HARDWARE_VERSION],
|
||||||
)
|
)
|
||||||
|
|
||||||
async def async_added_to_hass(self) -> None:
|
async def async_added_to_hass(self) -> None:
|
||||||
|
@@ -58,6 +58,7 @@ class NoboTemperatureSensor(SensorEntity):
|
|||||||
suggested_area = hub.zones[zone_id][ATTR_NAME]
|
suggested_area = hub.zones[zone_id][ATTR_NAME]
|
||||||
self._attr_device_info = DeviceInfo(
|
self._attr_device_info = DeviceInfo(
|
||||||
identifiers={(DOMAIN, component[ATTR_SERIAL])},
|
identifiers={(DOMAIN, component[ATTR_SERIAL])},
|
||||||
|
serial_number=component[ATTR_SERIAL],
|
||||||
name=component[ATTR_NAME],
|
name=component[ATTR_NAME],
|
||||||
manufacturer=NOBO_MANUFACTURER,
|
manufacturer=NOBO_MANUFACTURER,
|
||||||
model=component[ATTR_MODEL].name,
|
model=component[ATTR_MODEL].name,
|
||||||
|
Reference in New Issue
Block a user