File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 11"""Library to handle connection with Switchbot."""
22from __future__ import annotations
33
4- import logging
54from typing import Any
65
76from .device import DEVICE_SET_EXTENDED_KEY , DEVICE_SET_MODE_KEY , SwitchbotDevice
Original file line number Diff line number Diff line change 66from .base_light import SwitchbotSequenceBaseLight
77from .device import REQ_HEADER , ColorMode
88
9- BULB_COMMMAND_HEADER = "4701"
9+ BULB_COMMAND_HEADER = "4701"
1010BULB_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
1414BULB_ON_KEY = f"{ BULB_COMMAND } 01"
1515BULB_OFF_KEY = f"{ BULB_COMMAND } 02"
Original file line number Diff line number Diff line change 3232# Keys common to all device types
3333DEVICE_GET_BASIC_SETTINGS_KEY = "5702"
3434DEVICE_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
3838KEY_PASSWORD_PREFIX = "571"
You can’t perform that action at this time.
0 commit comments