Set model_id in miele integration (#154367)

This commit is contained in:
Åke Strandberg
2025-10-13 14:31:22 +02:00
committed by GitHub
parent a3b67d5f28
commit 2512dad843
4 changed files with 12 additions and 4 deletions

View File

@@ -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

View File

@@ -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,
)

View File

@@ -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({

View File

@@ -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>,