2023-04-20 14:02:58 +00:00
|
|
|
"""Constants for Roborock."""
|
2024-03-08 14:05:07 +00:00
|
|
|
|
2023-11-18 20:22:30 +00:00
|
|
|
from vacuum_map_parser_base.config.drawable import Drawable
|
|
|
|
|
2023-04-20 14:02:58 +00:00
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
|
|
|
DOMAIN = "roborock"
|
|
|
|
CONF_ENTRY_CODE = "code"
|
|
|
|
CONF_BASE_URL = "base_url"
|
|
|
|
CONF_USER_DATA = "user_data"
|
|
|
|
|
2023-07-23 17:02:16 +00:00
|
|
|
PLATFORMS = [
|
2023-11-01 20:34:04 +00:00
|
|
|
Platform.BINARY_SENSOR,
|
2024-01-16 08:47:53 +00:00
|
|
|
Platform.BUTTON,
|
2023-11-18 20:22:30 +00:00
|
|
|
Platform.IMAGE,
|
2023-11-01 20:34:04 +00:00
|
|
|
Platform.NUMBER,
|
2023-07-23 17:02:16 +00:00
|
|
|
Platform.SELECT,
|
|
|
|
Platform.SENSOR,
|
|
|
|
Platform.SWITCH,
|
2023-07-25 11:29:48 +00:00
|
|
|
Platform.TIME,
|
2023-11-01 20:34:04 +00:00
|
|
|
Platform.VACUUM,
|
2023-07-23 17:02:16 +00:00
|
|
|
]
|
2023-11-18 20:22:30 +00:00
|
|
|
|
|
|
|
IMAGE_DRAWABLES: list[Drawable] = [
|
|
|
|
Drawable.PATH,
|
|
|
|
Drawable.CHARGER,
|
|
|
|
Drawable.VACUUM_POSITION,
|
|
|
|
]
|
|
|
|
|
|
|
|
IMAGE_CACHE_INTERVAL = 90
|
|
|
|
|
|
|
|
MAP_SLEEP = 3
|
2024-04-08 19:40:59 +00:00
|
|
|
|
|
|
|
GET_MAPS_SERVICE_NAME = "get_maps"
|