const.py 496 B

12345678910111213141516171819202122
  1. """Library to handle connection with Switchbot."""
  2. from __future__ import annotations
  3. DEFAULT_RETRY_COUNT = 3
  4. DEFAULT_RETRY_TIMEOUT = 1
  5. DEFAULT_SCAN_TIMEOUT = 5
  6. from .enum import StrEnum
  7. class SwitchbotModel(StrEnum):
  8. BOT = "WoHand"
  9. CURTAIN = "WoCurtain"
  10. HUMIDIFIER = "WoHumi"
  11. PLUG_MINI = "WoPlug"
  12. CONTACT_SENSOR = "WoContact"
  13. LIGHT_STRIP = "WoStrip"
  14. METER = "WoSensorTH"
  15. MOTION_SENSOR = "WoPresence"
  16. COLOR_BULB = "WoBulb"
  17. CEILING_LIGHT = "WoCeiling"