1
mirror of https://github.com/home-assistant/core synced 2024-10-04 07:58:43 +02:00
ha-core/homeassistant/components/hunterdouglas_powerview/const.py

28 lines
641 B
Python

"""Constants for Hunter Douglas Powerview hub."""
from aiohttp.client_exceptions import ServerDisconnectedError
from aiopvapi.helpers.aiorequest import (
PvApiConnectionError,
PvApiEmptyData,
PvApiMaintenance,
PvApiResponseStatusError,
)
DOMAIN = "hunterdouglas_powerview"
MANUFACTURER = "Hunter Douglas"
REDACT_MAC_ADDRESS = "mac_address"
REDACT_SERIAL_NUMBER = "serial_number"
REDACT_HUB_ADDRESS = "hub_address"
STATE_ATTRIBUTE_ROOM_NAME = "room_name"
HUB_EXCEPTIONS = (
ServerDisconnectedError,
TimeoutError,
PvApiConnectionError,
PvApiResponseStatusError,
PvApiMaintenance,
PvApiEmptyData,
)