mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Add model ID to WallboxEntity (#125434)
* chore: Update WallboxEntity model ID to use CHARGER_PART_NUMBER_KEY The WallboxEntity model ID is updated to use the CHARGER_PART_NUMBER_KEY value from the coordinator data. This change ensures consistency and accuracy in identifying the model of the Wallbox entity. * Update WallboxEntity model ID to use CHARGER_PART_NUMBER_KEY * chore: Update WallboxEntity model ID to use CHARGER_PART_NUMBER_KEY * remove obsolete key from test
This commit is contained in:
parent
b9bd8f6b34
commit
457e66527a
@ -34,7 +34,8 @@ class WallboxEntity(CoordinatorEntity[WallboxCoordinator]):
|
|||||||
},
|
},
|
||||||
name=f"Wallbox {self.coordinator.data[CHARGER_NAME_KEY]}",
|
name=f"Wallbox {self.coordinator.data[CHARGER_NAME_KEY]}",
|
||||||
manufacturer="Wallbox",
|
manufacturer="Wallbox",
|
||||||
model=self.coordinator.data[CHARGER_DATA_KEY][CHARGER_PART_NUMBER_KEY],
|
model=self.coordinator.data[CHARGER_NAME_KEY].split(" SN")[0],
|
||||||
|
model_id=self.coordinator.data[CHARGER_DATA_KEY][CHARGER_PART_NUMBER_KEY],
|
||||||
sw_version=self.coordinator.data[CHARGER_DATA_KEY][CHARGER_SOFTWARE_KEY][
|
sw_version=self.coordinator.data[CHARGER_DATA_KEY][CHARGER_SOFTWARE_KEY][
|
||||||
CHARGER_CURRENT_VERSION_KEY
|
CHARGER_CURRENT_VERSION_KEY
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user