Skip to content

Commit 561be22

Browse files
authored
Disable last cleaning sensor for gs3mp model in lamarzocco (#145576)
* Disable last cleaning sensor for gs3mp model in lamarzocco * is comparison
1 parent 301d308 commit 561be22

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

homeassistant/components/lamarzocco/binary_sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class LaMarzoccoBinarySensorEntityDescription(
7070
),
7171
entity_category=EntityCategory.DIAGNOSTIC,
7272
supported_fn=lambda coordinator: (
73-
coordinator.device.dashboard.model_name != ModelName.GS3_MP
73+
coordinator.device.dashboard.model_name is not ModelName.GS3_MP
7474
),
7575
),
7676
LaMarzoccoBinarySensorEntityDescription(

homeassistant/components/lamarzocco/sensor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ class LaMarzoccoSensorEntityDescription(
113113
).last_cleaning_start_time
114114
),
115115
entity_category=EntityCategory.DIAGNOSTIC,
116+
supported_fn=(
117+
lambda coordinator: coordinator.device.dashboard.model_name
118+
is not ModelName.GS3_MP
119+
),
116120
),
117121
)
118122

0 commit comments

Comments
 (0)