1
mirror of https://github.com/home-assistant/core synced 2024-08-28 03:36:46 +02:00
ha-core/homeassistant/components/wiz/const.py
2022-02-14 14:25:15 +01:00

26 lines
541 B
Python

"""Constants for the WiZ Platform integration."""
from datetime import timedelta
from pywizlight.exceptions import (
WizLightConnectionError,
WizLightNotKnownBulb,
WizLightTimeOutError,
)
DOMAIN = "wiz"
DEFAULT_NAME = "WiZ"
DISCOVER_SCAN_TIMEOUT = 10
DISCOVERY_INTERVAL = timedelta(minutes=15)
WIZ_EXCEPTIONS = (
OSError,
WizLightTimeOutError,
TimeoutError,
WizLightConnectionError,
ConnectionRefusedError,
)
WIZ_CONNECT_EXCEPTIONS = (WizLightNotKnownBulb, *WIZ_EXCEPTIONS)
SIGNAL_WIZ_PIR = "wiz_pir_{}"