mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 06:05:26 +01:00
Set model_id in miele integration (#154367)
This commit is contained in:
@@ -65,6 +65,7 @@ async def async_get_device_diagnostics(
|
||||
info = {
|
||||
"manufacturer": device.manufacturer,
|
||||
"model": device.model,
|
||||
"model_id": device.model_id,
|
||||
}
|
||||
|
||||
coordinator = config_entry.runtime_data
|
||||
|
||||
@@ -40,7 +40,13 @@ class MieleEntity(CoordinatorEntity[MieleDataUpdateCoordinator]):
|
||||
name=device.device_name or appliance_type or device.tech_type,
|
||||
translation_key=None if device.device_name else appliance_type,
|
||||
manufacturer=MANUFACTURER,
|
||||
model=device.tech_type,
|
||||
model=(
|
||||
appliance_type.capitalize().replace("_", " ")
|
||||
if appliance_type
|
||||
else None
|
||||
)
|
||||
or device.tech_type,
|
||||
model_id=device.tech_type,
|
||||
hw_version=device.xkm_tech_type,
|
||||
sw_version=device.xkm_release_version,
|
||||
)
|
||||
|
||||
@@ -849,7 +849,8 @@
|
||||
}),
|
||||
'info': dict({
|
||||
'manufacturer': 'Miele',
|
||||
'model': 'FNS 28463 E ed/',
|
||||
'model': 'Freezer',
|
||||
'model_id': 'FNS 28463 E ed/',
|
||||
}),
|
||||
'miele_data': dict({
|
||||
'actions': dict({
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Miele',
|
||||
'model': 'FNS 28463 E ed/',
|
||||
'model_id': None,
|
||||
'model': 'Freezer',
|
||||
'model_id': 'FNS 28463 E ed/',
|
||||
'name': 'Freezer',
|
||||
'name_by_user': None,
|
||||
'primary_config_entry': <ANY>,
|
||||
|
||||
Reference in New Issue
Block a user