1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-11-10 18:00:12 +01:00

Rename the lb27r1 class to lb2 (#586)

This commit is contained in:
Felipe Martins Diel 2021-04-29 20:31:30 -03:00 committed by GitHub
parent 6a54803a36
commit 2d863bd6c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ from .alarm import S1C
from .climate import hysen from .climate import hysen
from .cover import dooya from .cover import dooya
from .device import Device, ping, scan 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 .remote import rm, rm4, rm4mini, rm4pro, rmmini, rmminib, rmpro
from .sensor import a1 from .sensor import a1
from .switch import bg1, mp1, sp1, sp2, sp2s, sp3, sp3s, sp4, sp4b from .switch import bg1, mp1, sp1, sp2, sp2s, sp3, sp3s, sp4, sp4b
@ -109,7 +109,7 @@ SUPPORTED_TYPES = {
0x60C7: (lb1, "LB1", "Broadlink"), 0x60C7: (lb1, "LB1", "Broadlink"),
0x60C8: (lb1, "LB1", "Broadlink"), 0x60C8: (lb1, "LB1", "Broadlink"),
0x6112: (lb1, "LB1", "Broadlink"), 0x6112: (lb1, "LB1", "Broadlink"),
0xA4F4: (lb27r1, "LB27 R1", "Broadlink"), 0xA4F4: (lb2, "LB27 R1", "Broadlink"),
0x2722: (S1C, "S2KIT", "Broadlink"), 0x2722: (S1C, "S2KIT", "Broadlink"),
0x4EAD: (hysen, "HY02B05H", "Hysen"), 0x4EAD: (hysen, "HY02B05H", "Hysen"),
0x4E4D: (dooya, "DT360E-45/20", "Dooya"), 0x4E4D: (dooya, "DT360E-45/20", "Dooya"),

View File

@ -105,10 +105,10 @@ class lb1(Device):
return state return state
class lb27r1(Device): class lb2(Device):
"""Controls a Broadlink LB27 R1.""" """Controls a Broadlink LB26/LB27."""
TYPE = "LB27R1" TYPE = "LB2"
@enum.unique @enum.unique
class ColorMode(enum.IntEnum): class ColorMode(enum.IntEnum):