mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Disable last cleaning sensor for gs3mp model in lamarzocco (#145576)
* Disable last cleaning sensor for gs3mp model in lamarzocco * is comparison
This commit is contained in:
@@ -70,7 +70,7 @@ ENTITIES: tuple[LaMarzoccoBinarySensorEntityDescription, ...] = (
|
|||||||
),
|
),
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
supported_fn=lambda coordinator: (
|
supported_fn=lambda coordinator: (
|
||||||
coordinator.device.dashboard.model_name != ModelName.GS3_MP
|
coordinator.device.dashboard.model_name is not ModelName.GS3_MP
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
LaMarzoccoBinarySensorEntityDescription(
|
LaMarzoccoBinarySensorEntityDescription(
|
||||||
|
@@ -113,6 +113,10 @@ ENTITIES: tuple[LaMarzoccoSensorEntityDescription, ...] = (
|
|||||||
).last_cleaning_start_time
|
).last_cleaning_start_time
|
||||||
),
|
),
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
supported_fn=(
|
||||||
|
lambda coordinator: coordinator.device.dashboard.model_name
|
||||||
|
is not ModelName.GS3_MP
|
||||||
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user