1
0

const.py 438 B

1234567891011121314151617181920
  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. LIGHT_STRIP = "WoStrip"
  13. METER = "WoSensorTH"
  14. MOTION_SENSOR = "WoPresence"
  15. COLOR_BULB = "WoBulb"