Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Commit df96307

Browse files
authored
Update switch.py
Set the "Play on Jukebox Start" switch to On by default. Seems to make more sense.
1 parent 99f88bb commit df96307

File tree

1 file changed

+2
-1
lines changed
  • custom_components/music_assistant_jukebox

1 file changed

+2
-1
lines changed

custom_components/music_assistant_jukebox/switch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry) -> None:
181181
"""Initialize the switch."""
182182
self.hass = hass
183183
self.entry = entry
184-
self._attr_is_on = entry.data.get("play_on_start", False)
184+
self._attr_is_on = True
185+
#self._attr_is_on = entry.data.get("play_on_start", False)
185186

186187
async def async_turn_on(self, **kwargs: Any) -> None:
187188
"""Turn on play music on start."""

0 commit comments

Comments
 (0)