mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Allow empty cast media_player config (#38971)
This commit is contained in:
@@ -140,7 +140,7 @@ async def async_setup_platform(
|
||||
|
||||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
"""Set up Cast from a config entry."""
|
||||
config = hass.data[CAST_DOMAIN].get("media_player", {})
|
||||
config = hass.data[CAST_DOMAIN].get("media_player") or {}
|
||||
if not isinstance(config, list):
|
||||
config = [config]
|
||||
|
||||
|
Reference in New Issue
Block a user