2022-02-05 01:20:21 +01:00
|
|
|
"""Constants for the WiZ Platform integration."""
|
2022-02-05 10:36:44 -06:00
|
|
|
from datetime import timedelta
|
|
|
|
|
2022-02-11 20:42:41 -06:00
|
|
|
from pywizlight.exceptions import (
|
|
|
|
WizLightConnectionError,
|
|
|
|
WizLightNotKnownBulb,
|
|
|
|
WizLightTimeOutError,
|
|
|
|
)
|
2022-02-05 01:20:21 +01:00
|
|
|
|
|
|
|
DOMAIN = "wiz"
|
|
|
|
DEFAULT_NAME = "WiZ"
|
2022-02-05 09:23:19 -06:00
|
|
|
|
2022-02-05 10:36:44 -06:00
|
|
|
DISCOVER_SCAN_TIMEOUT = 10
|
|
|
|
DISCOVERY_INTERVAL = timedelta(minutes=15)
|
|
|
|
|
2022-02-05 09:23:19 -06:00
|
|
|
WIZ_EXCEPTIONS = (
|
|
|
|
OSError,
|
|
|
|
WizLightTimeOutError,
|
|
|
|
TimeoutError,
|
|
|
|
WizLightConnectionError,
|
|
|
|
ConnectionRefusedError,
|
|
|
|
)
|
2022-02-11 20:42:41 -06:00
|
|
|
WIZ_CONNECT_EXCEPTIONS = (WizLightNotKnownBulb, *WIZ_EXCEPTIONS)
|
2022-02-14 07:25:15 -06:00
|
|
|
|
|
|
|
SIGNAL_WIZ_PIR = "wiz_pir_{}"
|