From 0ad2398bdac494eea5f33db80846e49f63d99f6b Mon Sep 17 00:00:00 2001 From: Guido Schmitz Date: Tue, 16 Jul 2024 22:39:00 +0200 Subject: [PATCH] Use model_id in devolo_home_network (#122048) --- homeassistant/components/devolo_home_network/entity.py | 1 + tests/components/devolo_home_network/snapshots/test_init.ambr | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/devolo_home_network/entity.py b/homeassistant/components/devolo_home_network/entity.py index e77c3f60803..9d469ccfb16 100644 --- a/homeassistant/components/devolo_home_network/entity.py +++ b/homeassistant/components/devolo_home_network/entity.py @@ -48,6 +48,7 @@ class DevoloEntity(Entity): identifiers={(DOMAIN, str(self.device.serial_number))}, manufacturer="devolo", model=self.device.product, + model_id=self.device.mt_number, serial_number=self.device.serial_number, sw_version=self.device.firmware_version, ) diff --git a/tests/components/devolo_home_network/snapshots/test_init.ambr b/tests/components/devolo_home_network/snapshots/test_init.ambr index 6d07bec1fa4..619a8ce1121 100644 --- a/tests/components/devolo_home_network/snapshots/test_init.ambr +++ b/tests/components/devolo_home_network/snapshots/test_init.ambr @@ -25,7 +25,7 @@ }), 'manufacturer': 'devolo', 'model': 'dLAN pro 1200+ WiFi ac', - 'model_id': None, + 'model_id': '2730', 'name': 'Mock Title', 'name_by_user': None, 'primary_config_entry': ,