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