Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for Sensibo."""
2 
3 import logging
4 
5 from aiohttp.client_exceptions import ClientConnectionError
6 from pysensibo.exceptions import AuthenticationError, SensiboError
7 
8 from homeassistant.const import Platform
9 
10 LOGGER = logging.getLogger(__package__)
11 
12 DEFAULT_SCAN_INTERVAL = 60
13 DOMAIN = "sensibo"
14 PLATFORMS = [
15  Platform.BINARY_SENSOR,
16  Platform.BUTTON,
17  Platform.CLIMATE,
18  Platform.NUMBER,
19  Platform.SELECT,
20  Platform.SENSOR,
21  Platform.SWITCH,
22  Platform.UPDATE,
23 ]
24 DEFAULT_NAME = "Sensibo"
25 TIMEOUT = 8
26 
27 SENSIBO_ERRORS = (
28  ClientConnectionError,
29  TimeoutError,
30  AuthenticationError,
31  SensiboError,
32 )