From a996a51aa943c68b6d4d28f07b85013bff478506 Mon Sep 17 00:00:00 2001 From: TheJulianJES Date: Thu, 16 Nov 2023 21:24:32 +0100 Subject: [PATCH] Add "Jasco Products" manufacturer to ZHA `ForceOnLight` (#104089) * Add "Jasco Products" manufacturer to ZHA `ForceOnLight` * Change tests to expect `ForceOnLight` for "Jasco Products" lights --- homeassistant/components/zha/light.py | 2 +- tests/components/zha/zha_devices_list.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/zha/light.py b/homeassistant/components/zha/light.py index 6a01d550466..d545a331a6d 100644 --- a/homeassistant/components/zha/light.py +++ b/homeassistant/components/zha/light.py @@ -1072,7 +1072,7 @@ class HueLight(Light): @STRICT_MATCH( cluster_handler_names=CLUSTER_HANDLER_ON_OFF, aux_cluster_handlers={CLUSTER_HANDLER_COLOR, CLUSTER_HANDLER_LEVEL}, - manufacturers={"Jasco", "Quotra-Vision", "eWeLight", "eWeLink"}, + manufacturers={"Jasco", "Jasco Products", "Quotra-Vision", "eWeLight", "eWeLink"}, ) class ForceOnLight(Light): """Representation of a light which does not respect on/off for move_to_level_with_on_off commands.""" diff --git a/tests/components/zha/zha_devices_list.py b/tests/components/zha/zha_devices_list.py index 44f01555b19..c193cd509f3 100644 --- a/tests/components/zha/zha_devices_list.py +++ b/tests/components/zha/zha_devices_list.py @@ -1492,7 +1492,7 @@ DEVICES = [ DEV_SIG_ENT_MAP: { ("light", "00:11:22:33:44:55:66:77-1"): { DEV_SIG_CLUSTER_HANDLERS: ["on_off", "level"], - DEV_SIG_ENT_MAP_CLASS: "Light", + DEV_SIG_ENT_MAP_CLASS: "ForceOnLight", DEV_SIG_ENT_MAP_ID: "light.jasco_products_45852_light", }, ("button", "00:11:22:33:44:55:66:77-1-3"): { @@ -1547,7 +1547,7 @@ DEVICES = [ DEV_SIG_ENT_MAP: { ("light", "00:11:22:33:44:55:66:77-1"): { DEV_SIG_CLUSTER_HANDLERS: ["on_off"], - DEV_SIG_ENT_MAP_CLASS: "Light", + DEV_SIG_ENT_MAP_CLASS: "ForceOnLight", DEV_SIG_ENT_MAP_ID: "light.jasco_products_45856_light", }, ("button", "00:11:22:33:44:55:66:77-1-3"): { @@ -1602,7 +1602,7 @@ DEVICES = [ DEV_SIG_ENT_MAP: { ("light", "00:11:22:33:44:55:66:77-1"): { DEV_SIG_CLUSTER_HANDLERS: ["on_off", "level"], - DEV_SIG_ENT_MAP_CLASS: "Light", + DEV_SIG_ENT_MAP_CLASS: "ForceOnLight", DEV_SIG_ENT_MAP_ID: "light.jasco_products_45857_light", }, ("button", "00:11:22:33:44:55:66:77-1-3"): {