diff --git a/custom_components/squeezebox_telnet/media_player.py b/custom_components/squeezebox_telnet/media_player.py index b02c311..3749dcb 100644 --- a/custom_components/squeezebox_telnet/media_player.py +++ b/custom_components/squeezebox_telnet/media_player.py @@ -124,9 +124,9 @@ async def async_setup_platform(hass, config, async_add_entities, update_tasks = [] for player in target_players: - await getattr(player, method['method'])(**params) + command = service.data.get('command').split() + player.call_method(*command) update_tasks.append(player.async_update_ha_state(True)) - if update_tasks: await asyncio.wait(update_tasks)