Skip to content

Commit

Permalink
Add switchbot lock commands (#9)
Browse files Browse the repository at this point in the history
* Add switchbot lock commands

* Formatting fixes
  • Loading branch information
miterion authored Apr 2, 2024
1 parent 74ed1f3 commit f4d1af7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions switchbot_api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tools to query the SwitchBot API."""

import base64
from dataclasses import dataclass
from enum import Enum
Expand Down Expand Up @@ -146,6 +147,13 @@ class LightCommands(Commands):
BRIGHTNESS_DOWN = "brightnessDown"


class LockCommands(Commands):
"""Lock commands"""

LOCK = "lock"
UNLOCK = "unlock"


class CeilingLightCommands(Commands):
"""Ceiling light commands."""

Expand Down

0 comments on commit f4d1af7

Please sign in to comment.