From e96b5f2eb1f43a20c8aefab5281ed80401534ddc Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 28 Feb 2026 03:16:53 -0500 Subject: [PATCH] Remove unnecessary volume_up/volume_down overrides from mpd media player (#164428) Co-authored-by: Claude --- homeassistant/components/mpd/media_player.py | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/homeassistant/components/mpd/media_player.py b/homeassistant/components/mpd/media_player.py index 14b69e941b7d..8a33e6ff6c2f 100644 --- a/homeassistant/components/mpd/media_player.py +++ b/homeassistant/components/mpd/media_player.py @@ -93,6 +93,7 @@ class MpdDevice(MediaPlayerEntity): _attr_media_content_type = MediaType.MUSIC _attr_has_entity_name = True _attr_name = None + _attr_volume_step = 0.05 def __init__( self, server: str, port: int, password: str | None, unique_id: str @@ -393,24 +394,6 @@ class MpdDevice(MediaPlayerEntity): if "volume" in self._status: await self._client.setvol(int(volume * 100)) - async def async_volume_up(self) -> None: - """Service to send the MPD the command for volume up.""" - async with self.connection(): - if "volume" in self._status: - current_volume = int(self._status["volume"]) - - if current_volume <= 100: - self._client.setvol(current_volume + 5) - - async def async_volume_down(self) -> None: - """Service to send the MPD the command for volume down.""" - async with self.connection(): - if "volume" in self._status: - current_volume = int(self._status["volume"]) - - if current_volume >= 0: - await self._client.setvol(current_volume - 5) - async def async_media_play(self) -> None: """Service to send the MPD the command for play/pause.""" async with self.connection():