From 2d863bd6c197f01b2c1e99efd5ab67f400536661 Mon Sep 17 00:00:00 2001 From: Felipe Martins Diel <41558831+felipediel@users.noreply.github.com> Date: Thu, 29 Apr 2021 20:31:30 -0300 Subject: [PATCH] Rename the lb27r1 class to lb2 (#586) --- broadlink/__init__.py | 4 ++-- broadlink/light.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/broadlink/__init__.py b/broadlink/__init__.py index 693820d..beb9fb3 100644 --- a/broadlink/__init__.py +++ b/broadlink/__init__.py @@ -9,7 +9,7 @@ from .alarm import S1C from .climate import hysen from .cover import dooya from .device import Device, ping, scan -from .light import lb1, lb27r1 +from .light import lb1, lb2 from .remote import rm, rm4, rm4mini, rm4pro, rmmini, rmminib, rmpro from .sensor import a1 from .switch import bg1, mp1, sp1, sp2, sp2s, sp3, sp3s, sp4, sp4b @@ -109,7 +109,7 @@ SUPPORTED_TYPES = { 0x60C7: (lb1, "LB1", "Broadlink"), 0x60C8: (lb1, "LB1", "Broadlink"), 0x6112: (lb1, "LB1", "Broadlink"), - 0xA4F4: (lb27r1, "LB27 R1", "Broadlink"), + 0xA4F4: (lb2, "LB27 R1", "Broadlink"), 0x2722: (S1C, "S2KIT", "Broadlink"), 0x4EAD: (hysen, "HY02B05H", "Hysen"), 0x4E4D: (dooya, "DT360E-45/20", "Dooya"), diff --git a/broadlink/light.py b/broadlink/light.py index 00bce4d..b3e20a1 100644 --- a/broadlink/light.py +++ b/broadlink/light.py @@ -105,10 +105,10 @@ class lb1(Device): return state -class lb27r1(Device): - """Controls a Broadlink LB27 R1.""" +class lb2(Device): + """Controls a Broadlink LB26/LB27.""" - TYPE = "LB27R1" + TYPE = "LB2" @enum.unique class ColorMode(enum.IntEnum):