Skip to content

Commit

Permalink
Merge pull request #354 from astrandb/SerialNumber
Browse files Browse the repository at this point in the history
Show serial number on device page
  • Loading branch information
astrandb authored Nov 4, 2023
2 parents cafc566 + 4c0937a commit 75387e9
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/miele/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ def __init__(
self._attr_unique_id = f"{self.entity_description.key}-{self._ent}"
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, self._ent)},
serial_number=self._ent,
name=appl_type,
manufacturer=MANUFACTURER,
model=self.coordinator.data[self._ent]["ident|deviceIdentLabel|techType"],
Expand Down
1 change: 1 addition & 0 deletions custom_components/miele/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def __init__(
self._attr_unique_id = f"{self.entity_description.key}-{self._ent}"
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, self._ent)},
serial_number=self._ent,
name=appl_type,
manufacturer=MANUFACTURER,
model=self.coordinator.data[self._ent]["ident|deviceIdentLabel|techType"],
Expand Down
1 change: 1 addition & 0 deletions custom_components/miele/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ def __init__(
self._attr_supported_features = self._ed.supported_features
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, self._ent)},
serial_number=self._ent,
name=appl_type,
manufacturer=MANUFACTURER,
model=self.coordinator.data[self._ent]["ident|deviceIdentLabel|techType"],
Expand Down
1 change: 1 addition & 0 deletions custom_components/miele/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def __init__(
self._attr_supported_features = self.entity_description.supported_features
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, self._ent)},
serial_number=self._ent,
name=appl_type,
manufacturer=MANUFACTURER,
model=self.coordinator.data[self._ent]["ident|deviceIdentLabel|techType"],
Expand Down
1 change: 1 addition & 0 deletions custom_components/miele/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def __init__(
self._attr_supported_features = self.entity_description.supported_features
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, self._ent)},
serial_number=self._ent,
name=appl_type,
manufacturer=MANUFACTURER,
model=self.coordinator.data[self._ent]["ident|deviceIdentLabel|techType"],
Expand Down
1 change: 1 addition & 0 deletions custom_components/miele/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ def __init__(
self._attr_mode = NumberMode.SLIDER
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, self._ent)},
serial_number=self._ent,
name=appl_type,
manufacturer=MANUFACTURER,
model=self.coordinator.data[self._ent]["ident|deviceIdentLabel|techType"],
Expand Down
1 change: 1 addition & 0 deletions custom_components/miele/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@ def __init__(
self._attr_unique_id = f"{self.entity_description.key}-{self._ent}"
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, self._ent)},
serial_number=self._ent,
name=appl_type,
manufacturer=MANUFACTURER,
model=self.coordinator.data[self._ent]["ident|deviceIdentLabel|techType"],
Expand Down
1 change: 1 addition & 0 deletions custom_components/miele/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def __init__(
self._attr_unique_id = f"{self.entity_description.key}-{self._ent}"
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, self._ent)},
serial_number=self._ent,
name=appl_type,
manufacturer=MANUFACTURER,
model=self.coordinator.data[self._ent]["ident|deviceIdentLabel|techType"],
Expand Down
1 change: 1 addition & 0 deletions custom_components/miele/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def __init__(
self._attr_unique_id = f"{self.entity_description.key}-{self._ent}"
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, self._ent)},
serial_number=self._ent,
name=appl_type,
manufacturer=MANUFACTURER,
model=self.coordinator.data[self._ent]["ident|deviceIdentLabel|techType"],
Expand Down

0 comments on commit 75387e9

Please sign in to comment.