Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the Fully Kiosk Browser integration."""
2 
3 from __future__ import annotations
4 
5 from datetime import timedelta
6 import logging
7 from typing import Final
8 
9 from homeassistant.components.media_player import MediaPlayerEntityFeature
10 
11 DOMAIN: Final = "fully_kiosk"
12 
13 LOGGER = logging.getLogger(__package__)
14 UPDATE_INTERVAL = timedelta(seconds=30)
15 
16 DEFAULT_PORT = 2323
17 
18 AUDIOMANAGER_STREAM_MUSIC = 3
19 
20 MEDIA_SUPPORT_FULLYKIOSK = (
21  MediaPlayerEntityFeature.PLAY_MEDIA
22  | MediaPlayerEntityFeature.STOP
23  | MediaPlayerEntityFeature.VOLUME_SET
24  | MediaPlayerEntityFeature.BROWSE_MEDIA
25 )
26 
27 SERVICE_LOAD_URL = "load_url"
28 SERVICE_START_APPLICATION = "start_application"
29 SERVICE_SET_CONFIG = "set_config"
30 
31 ATTR_URL = "url"
32 ATTR_APPLICATION = "application"
33 ATTR_KEY = "key"
34 ATTR_VALUE = "value"