From 5af015dd7d25f7f3bf8cc93dda89602ac2d17ac3 Mon Sep 17 00:00:00 2001 From: "David F. Mulcahey" Date: Fri, 26 Aug 2022 13:44:34 -0400 Subject: [PATCH] Fix missing entities in ZHA for IKEA STARKVIND (#77360) --- homeassistant/components/zha/fan.py | 5 ++++- homeassistant/components/zha/switch.py | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/zha/fan.py b/homeassistant/components/zha/fan.py index d947fca10ab..c38a71e3249 100644 --- a/homeassistant/components/zha/fan.py +++ b/homeassistant/components/zha/fan.py @@ -248,7 +248,10 @@ IKEA_NAME_TO_PRESET_MODE = {v: k for k, v in IKEA_PRESET_MODES_TO_NAME.items()} IKEA_PRESET_MODES = list(IKEA_NAME_TO_PRESET_MODE) -@MULTI_MATCH(channel_names="ikea_airpurifier", models={"STARKVIND Air purifier"}) +@MULTI_MATCH( + channel_names="ikea_airpurifier", + models={"STARKVIND Air purifier", "STARKVIND Air purifier table"}, +) class IkeaFan(BaseFan, ZhaEntity): """Representation of a ZHA fan.""" diff --git a/homeassistant/components/zha/switch.py b/homeassistant/components/zha/switch.py index 881401f31da..752df6d568e 100644 --- a/homeassistant/components/zha/switch.py +++ b/homeassistant/components/zha/switch.py @@ -292,7 +292,8 @@ class P1MotionTriggerIndicatorSwitch( @CONFIG_DIAGNOSTIC_MATCH( - channel_names="ikea_airpurifier", models={"STARKVIND Air purifier"} + channel_names="ikea_airpurifier", + models={"STARKVIND Air purifier", "STARKVIND Air purifier table"}, ) class ChildLock(ZHASwitchConfigurationEntity, id_suffix="child_lock"): """ZHA BinarySensor.""" @@ -301,7 +302,8 @@ class ChildLock(ZHASwitchConfigurationEntity, id_suffix="child_lock"): @CONFIG_DIAGNOSTIC_MATCH( - channel_names="ikea_airpurifier", models={"STARKVIND Air purifier"} + channel_names="ikea_airpurifier", + models={"STARKVIND Air purifier", "STARKVIND Air purifier table"}, ) class DisableLed(ZHASwitchConfigurationEntity, id_suffix="disable_led"): """ZHA BinarySensor."""