12345678910111213141516171819202122 |
- """Library to handle connection with Switchbot."""
- from __future__ import annotations
- DEFAULT_RETRY_COUNT = 3
- DEFAULT_RETRY_TIMEOUT = 1
- DEFAULT_SCAN_TIMEOUT = 5
- from .enum import StrEnum
- class SwitchbotModel(StrEnum):
- BOT = "WoHand"
- CURTAIN = "WoCurtain"
- HUMIDIFIER = "WoHumi"
- PLUG_MINI = "WoPlug"
- CONTACT_SENSOR = "WoContact"
- LIGHT_STRIP = "WoStrip"
- METER = "WoSensorTH"
- MOTION_SENSOR = "WoPresence"
- COLOR_BULB = "WoBulb"
- CEILING_LIGHT = "WoCeiling"
|