Starting with python script and struggling with this:
hass.services.call(‘media_player’,‘select_source’,{‘entity_id’: ‘media_player.bad’, ‘source:’: ‘P4 Radio Norge 98.3 (Top 40/Pop)’})
Gets the following error:
“ERROR (MainThread) [homeassistant.core] Invalid service data for media_player.select_source: extra keys not allowed @ data[‘source:’]. Got ‘P4 Radio Norge 98.3 (Top 40/Pop)’
required key not provided @ data[‘source’]. Got None”
Anyone can help ?