Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rename lb27r1 class to lb2 #586

Merged
merged 1 commit into from
Apr 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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