Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yamaha musiccast grouping-services #51952

Merged
merged 10 commits into from Jun 28, 2021
1 change: 1 addition & 0 deletions homeassistant/components/yamaha_musiccast/__init__.py
Expand Up @@ -65,6 +65,7 @@ def __init__(self, hass: HomeAssistant, client: MusicCastDevice) -> None:
self.musiccast = client

super().__init__(hass, _LOGGER, name=DOMAIN, update_interval=SCAN_INTERVAL)
self.entities: list[MusicCastDeviceEntity] = []

async def _async_update_data(self) -> MusicCastData:
"""Update data via library."""
Expand Down
6 changes: 6 additions & 0 deletions homeassistant/components/yamaha_musiccast/const.py
@@ -1,4 +1,5 @@
"""Constants for the MusicCast integration."""

from homeassistant.components.media_player.const import (
REPEAT_MODE_ALL,
REPEAT_MODE_OFF,
Expand All @@ -16,6 +17,9 @@
ATTR_PLAYLIST = "playlist"
ATTR_PRESET = "preset"
ATTR_SOFTWARE_VERSION = "sw_version"
ATTR_MC_LINK = "mc_link"
ATTR_MAIN_SYNC = "main_sync"
ATTR_MC_LINK_SOURCES = [ATTR_MC_LINK, ATTR_MAIN_SYNC]

DEFAULT_ZONE = "main"
HA_REPEAT_MODE_TO_MC_MAPPING = {
Expand All @@ -24,6 +28,8 @@
REPEAT_MODE_ALL: "all",
}

NULL_GROUP = "00000000000000000000000000000000"

INTERVAL_SECONDS = "interval_seconds"

MC_REPEAT_MODE_TO_HA_MAPPING = {
Expand Down