2024-02-15 14:27:11 +00:00
|
|
|
"""Constants for Hunter Douglas Powerview hub."""
|
2020-04-29 21:24:57 +00:00
|
|
|
|
2020-07-27 03:01:29 +00:00
|
|
|
from aiohttp.client_exceptions import ServerDisconnectedError
|
2024-02-15 14:27:11 +00:00
|
|
|
from aiopvapi.helpers.aiorequest import (
|
|
|
|
PvApiConnectionError,
|
|
|
|
PvApiEmptyData,
|
|
|
|
PvApiMaintenance,
|
|
|
|
PvApiResponseStatusError,
|
|
|
|
)
|
2020-04-29 21:24:57 +00:00
|
|
|
|
|
|
|
DOMAIN = "hunterdouglas_powerview"
|
|
|
|
MANUFACTURER = "Hunter Douglas"
|
|
|
|
|
2022-06-21 16:12:11 +00:00
|
|
|
REDACT_MAC_ADDRESS = "mac_address"
|
|
|
|
REDACT_SERIAL_NUMBER = "serial_number"
|
|
|
|
REDACT_HUB_ADDRESS = "hub_address"
|
2020-04-29 21:24:57 +00:00
|
|
|
|
2024-02-15 14:27:11 +00:00
|
|
|
STATE_ATTRIBUTE_ROOM_NAME = "room_name"
|
2020-04-29 21:24:57 +00:00
|
|
|
|
2021-11-18 15:57:31 +00:00
|
|
|
HUB_EXCEPTIONS = (
|
|
|
|
ServerDisconnectedError,
|
2024-02-05 11:00:37 +00:00
|
|
|
TimeoutError,
|
2021-11-18 15:57:31 +00:00
|
|
|
PvApiConnectionError,
|
|
|
|
PvApiResponseStatusError,
|
2024-02-15 14:27:11 +00:00
|
|
|
PvApiMaintenance,
|
|
|
|
PvApiEmptyData,
|
2021-11-18 15:57:31 +00:00
|
|
|
)
|