Skip to content
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
1 change: 0 additions & 1 deletion switchbot/devices/bot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Library to handle connection with Switchbot."""
from __future__ import annotations

import logging
from typing import Any

from .device import DEVICE_SET_EXTENDED_KEY, DEVICE_SET_MODE_KEY, SwitchbotDevice
Expand Down
4 changes: 2 additions & 2 deletions switchbot/devices/bulb.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from .base_light import SwitchbotSequenceBaseLight
from .device import REQ_HEADER, ColorMode

BULB_COMMMAND_HEADER = "4701"
BULB_COMMAND_HEADER = "4701"
BULB_REQUEST = f"{REQ_HEADER}4801"

BULB_COMMAND = f"{REQ_HEADER}{BULB_COMMMAND_HEADER}"
BULB_COMMAND = f"{REQ_HEADER}{BULB_COMMAND_HEADER}"
# Bulb keys
BULB_ON_KEY = f"{BULB_COMMAND}01"
BULB_OFF_KEY = f"{BULB_COMMAND}02"
Expand Down
2 changes: 1 addition & 1 deletion switchbot/devices/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# Keys common to all device types
DEVICE_GET_BASIC_SETTINGS_KEY = "5702"
DEVICE_SET_MODE_KEY = "5703"
DEVICE_SET_EXTENDED_KEY = "570f"
DEVICE_SET_EXTENDED_KEY = REQ_HEADER

# Base key when encryption is set
KEY_PASSWORD_PREFIX = "571"
Expand Down