2022-08-16 18:08:35 +00:00
|
|
|
"""Constants for the Fully Kiosk Browser integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from datetime import timedelta
|
|
|
|
import logging
|
|
|
|
from typing import Final
|
|
|
|
|
2022-08-29 17:39:05 +00:00
|
|
|
from homeassistant.components.media_player.const import MediaPlayerEntityFeature
|
|
|
|
|
2022-08-16 18:08:35 +00:00
|
|
|
DOMAIN: Final = "fully_kiosk"
|
|
|
|
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
UPDATE_INTERVAL = timedelta(seconds=30)
|
|
|
|
|
|
|
|
DEFAULT_PORT = 2323
|
2022-08-29 17:39:05 +00:00
|
|
|
|
|
|
|
AUDIOMANAGER_STREAM_MUSIC = 3
|
|
|
|
|
|
|
|
MEDIA_SUPPORT_FULLYKIOSK = (
|
|
|
|
MediaPlayerEntityFeature.PLAY_MEDIA
|
|
|
|
| MediaPlayerEntityFeature.STOP
|
|
|
|
| MediaPlayerEntityFeature.VOLUME_SET
|
|
|
|
| MediaPlayerEntityFeature.BROWSE_MEDIA
|
|
|
|
)
|