Skip to content

Commit 7d2ddb1

Browse files
authored
Fix typos in lights (#98)
1 parent 1d8c105 commit 7d2ddb1

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

switchbot/devices/bot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Library to handle connection with Switchbot."""
22
from __future__ import annotations
33

4-
import logging
54
from typing import Any
65

76
from .device import DEVICE_SET_EXTENDED_KEY, DEVICE_SET_MODE_KEY, SwitchbotDevice

switchbot/devices/bulb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
from .base_light import SwitchbotSequenceBaseLight
77
from .device import REQ_HEADER, ColorMode
88

9-
BULB_COMMMAND_HEADER = "4701"
9+
BULB_COMMAND_HEADER = "4701"
1010
BULB_REQUEST = f"{REQ_HEADER}4801"
1111

12-
BULB_COMMAND = f"{REQ_HEADER}{BULB_COMMMAND_HEADER}"
12+
BULB_COMMAND = f"{REQ_HEADER}{BULB_COMMAND_HEADER}"
1313
# Bulb keys
1414
BULB_ON_KEY = f"{BULB_COMMAND}01"
1515
BULB_OFF_KEY = f"{BULB_COMMAND}02"

switchbot/devices/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# Keys common to all device types
3333
DEVICE_GET_BASIC_SETTINGS_KEY = "5702"
3434
DEVICE_SET_MODE_KEY = "5703"
35-
DEVICE_SET_EXTENDED_KEY = "570f"
35+
DEVICE_SET_EXTENDED_KEY = REQ_HEADER
3636

3737
# Base key when encryption is set
3838
KEY_PASSWORD_PREFIX = "571"

0 commit comments

Comments
 (0)