From 4c10ce6f40f2ec5b6a5d8f12f8976ee816c65375 Mon Sep 17 00:00:00 2001 From: Josef Zweck <24647999+zweckj@users.noreply.github.com> Date: Mon, 14 Oct 2024 11:45:02 +0200 Subject: [PATCH] Add model_id to lamarzocco (#128344) --- homeassistant/components/lamarzocco/entity.py | 1 + tests/components/lamarzocco/snapshots/test_switch.ambr | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/lamarzocco/entity.py b/homeassistant/components/lamarzocco/entity.py index 9cc2ce8ef6b..f7e6ff9e2b8 100644 --- a/homeassistant/components/lamarzocco/entity.py +++ b/homeassistant/components/lamarzocco/entity.py @@ -43,6 +43,7 @@ class LaMarzoccoBaseEntity( name=device.name, manufacturer="La Marzocco", model=device.full_model_name, + model_id=device.model, serial_number=device.serial_number, sw_version=device.firmware[FirmwareType.MACHINE].current_version, ) diff --git a/tests/components/lamarzocco/snapshots/test_switch.ambr b/tests/components/lamarzocco/snapshots/test_switch.ambr index 4ec22e3123d..5d020cbee5f 100644 --- a/tests/components/lamarzocco/snapshots/test_switch.ambr +++ b/tests/components/lamarzocco/snapshots/test_switch.ambr @@ -113,7 +113,7 @@ }), 'manufacturer': 'La Marzocco', 'model': , - 'model_id': None, + 'model_id': , 'name': 'GS01234', 'name_by_user': None, 'primary_config_entry': ,