mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix multi_match to match with the IKEA airpurifier channel (#74432)
Fix multi_match for FilterLifeTime, device_run_time, filter_run_time sensors for ikea starkvind
This commit is contained in:
parent
6422040262
commit
f975d30258
@ -526,11 +526,7 @@ class TimerDurationMinutes(ZHANumberConfigurationEntity, id_suffix="timer_durati
|
|||||||
|
|
||||||
|
|
||||||
@CONFIG_DIAGNOSTIC_MATCH(
|
@CONFIG_DIAGNOSTIC_MATCH(
|
||||||
channel_names="ikea_manufacturer",
|
channel_names="ikea_airpurifier", models={"STARKVIND Air purifier"}
|
||||||
manufacturers={
|
|
||||||
"IKEA of Sweden",
|
|
||||||
},
|
|
||||||
models={"STARKVIND Air purifier"},
|
|
||||||
)
|
)
|
||||||
class FilterLifeTime(ZHANumberConfigurationEntity, id_suffix="filter_life_time"):
|
class FilterLifeTime(ZHANumberConfigurationEntity, id_suffix="filter_life_time"):
|
||||||
"""Representation of a ZHA timer duration configuration entity."""
|
"""Representation of a ZHA timer duration configuration entity."""
|
||||||
|
@ -810,13 +810,7 @@ class TimeLeft(Sensor, id_suffix="time_left"):
|
|||||||
_unit = TIME_MINUTES
|
_unit = TIME_MINUTES
|
||||||
|
|
||||||
|
|
||||||
@MULTI_MATCH(
|
@MULTI_MATCH(channel_names="ikea_airpurifier", models={"STARKVIND Air purifier"})
|
||||||
channel_names="ikea_manufacturer",
|
|
||||||
manufacturers={
|
|
||||||
"IKEA of Sweden",
|
|
||||||
},
|
|
||||||
models={"STARKVIND Air purifier"},
|
|
||||||
)
|
|
||||||
class IkeaDeviceRunTime(Sensor, id_suffix="device_run_time"):
|
class IkeaDeviceRunTime(Sensor, id_suffix="device_run_time"):
|
||||||
"""Sensor that displays device run time (in minutes)."""
|
"""Sensor that displays device run time (in minutes)."""
|
||||||
|
|
||||||
@ -826,13 +820,7 @@ class IkeaDeviceRunTime(Sensor, id_suffix="device_run_time"):
|
|||||||
_unit = TIME_MINUTES
|
_unit = TIME_MINUTES
|
||||||
|
|
||||||
|
|
||||||
@MULTI_MATCH(
|
@MULTI_MATCH(channel_names="ikea_airpurifier", models={"STARKVIND Air purifier"})
|
||||||
channel_names="ikea_manufacturer",
|
|
||||||
manufacturers={
|
|
||||||
"IKEA of Sweden",
|
|
||||||
},
|
|
||||||
models={"STARKVIND Air purifier"},
|
|
||||||
)
|
|
||||||
class IkeaFilterRunTime(Sensor, id_suffix="filter_run_time"):
|
class IkeaFilterRunTime(Sensor, id_suffix="filter_run_time"):
|
||||||
"""Sensor that displays run time of the current filter (in minutes)."""
|
"""Sensor that displays run time of the current filter (in minutes)."""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user