Add "Jasco Products" manufacturer to ZHA ForceOnLight (#104089)

* Add "Jasco Products" manufacturer to ZHA `ForceOnLight`

* Change tests to expect `ForceOnLight` for "Jasco Products" lights
This commit is contained in:
TheJulianJES 2023-11-16 21:24:32 +01:00 committed by GitHub
parent b3e247d5f0
commit a996a51aa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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."""

View File

@ -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"): {