From 0940b6b45b6efd27e6a2af1bc3d3f299b41cedbe Mon Sep 17 00:00:00 2001 From: litinoveweedle <15144712+litinoveweedle@users.noreply.github.com> Date: Tue, 11 Jun 2024 10:50:50 +0200 Subject: [PATCH] change pass of empty send_command argument --- custom_components/smartir/media_player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/smartir/media_player.py b/custom_components/smartir/media_player.py index 170dbf07..93ceee71 100644 --- a/custom_components/smartir/media_player.py +++ b/custom_components/smartir/media_player.py @@ -257,11 +257,11 @@ def extra_state_attributes(self): async def async_turn_off(self): """Turn the media player off.""" - await self._send_command(STATE_OFF, [[]]) + await self._send_command(STATE_OFF, []) async def async_turn_on(self): """Turn the media player off.""" - await self._send_command(STATE_ON, [[]]) + await self._send_command(STATE_ON, []) async def async_media_previous_track(self): """Send previous track command."""