const.py 410 B

12345678910111213141516171819
  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. PLUG_MINI = "WoPlug"
  11. CONTACT_SENSOR = "WoContact"
  12. METER = "WoSensorTH"
  13. MOTION_SENSOR = "WoPresence"
  14. COLOR_BULB = "WoBulb"