Skip to content

Commit

Permalink
Rename the lb27r1 class to lb2
Browse files Browse the repository at this point in the history
  • Loading branch information
felipediel committed Apr 29, 2021
1 parent 6a54803 commit 2b20b4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions broadlink/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
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
Expand Down Expand Up @@ -109,7 +109,7 @@
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"),
Expand Down
6 changes: 3 additions & 3 deletions broadlink/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ def _decode(self, response: bytes) -> dict:
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):
Expand Down

0 comments on commit 2b20b4c

Please # to comment.