) -> None:
"""Set single ProviderConfig value."""
config = await self.get_provider_config(instance_id)
- config.update({key: value})
+ config.update({**config.to_raw(), key: value})
config.validate()
conf_key = f"{CONF_PROVIDERS}/{instance_id}/values/{key}"
self.set(conf_key, config.get_value(key))
)
except KeyError as ke:
self.logger.warning("Could not load playlist: %s: %s", prov_playlist_id, ke)
- return None
+ return []
if "tracks" not in playlist_obj:
- return None
+ return []
result = []
# TODO: figure out how to handle paging in YTM
for index, track_obj in enumerate(playlist_obj["tracks"], 1):