Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for Hunter Douglas Powerview hub."""
2 
3 from aiohttp.client_exceptions import ServerDisconnectedError
4 from aiopvapi.helpers.aiorequest import (
5  PvApiConnectionError,
6  PvApiEmptyData,
7  PvApiMaintenance,
8  PvApiResponseStatusError,
9 )
10 
11 DOMAIN = "hunterdouglas_powerview"
12 MANUFACTURER = "Hunter Douglas"
13 
14 REDACT_MAC_ADDRESS = "mac_address"
15 REDACT_SERIAL_NUMBER = "serial_number"
16 REDACT_HUB_ADDRESS = "hub_address"
17 
18 STATE_ATTRIBUTE_ROOM_NAME = "room_name"
19 
20 HUB_EXCEPTIONS = (
21  ServerDisconnectedError,
22  TimeoutError,
23  PvApiConnectionError,
24  PvApiResponseStatusError,
25  PvApiMaintenance,
26  PvApiEmptyData,
27 )