1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-17 15:44:52 +01:00

Remove unnecessary volume_up/volume_down overrides from songpal media player (#164432)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Paulus Schoutsen
2026-03-18 08:56:04 -04:00
committed by GitHub
parent 26eaf510ee
commit fbb3b81991

View File

@@ -288,6 +288,8 @@ class SongpalEntity(MediaPlayerEntity):
self._volume_min = volume.minVolume
self._volume = volume.volume
self._volume_control = volume
if self._volume_max:
self._attr_volume_step = 1 / self._volume_max
self._attr_is_volume_muted = self._volume_control.is_muted
status = await self._dev.get_power()
@@ -381,14 +383,6 @@ class SongpalEntity(MediaPlayerEntity):
_LOGGER.debug("Setting volume to %s", volume)
return await self._volume_control.set_volume(volume)
async def async_volume_up(self) -> None:
"""Set volume up."""
return await self._volume_control.set_volume(self._volume + 1)
async def async_volume_down(self) -> None:
"""Set volume down."""
return await self._volume_control.set_volume(self._volume - 1)
async def async_turn_on(self) -> None:
"""Turn the device on."""
try: