diff --git a/homeassistant/components/cast/home_assistant_cast.py b/homeassistant/components/cast/home_assistant_cast.py index 5eec2a28908..8364094845c 100644 --- a/homeassistant/components/cast/home_assistant_cast.py +++ b/homeassistant/components/cast/home_assistant_cast.py @@ -70,7 +70,7 @@ async def async_setup_ha_cast( SIGNAL_HASS_CAST_SHOW_VIEW, controller, call.data[ATTR_ENTITY_ID], - call.data[ATTR_VIEW_PATH], + call.data.get(ATTR_VIEW_PATH), call.data.get(ATTR_URL_PATH), ) diff --git a/homeassistant/components/cast/services.yaml b/homeassistant/components/cast/services.yaml index e2e23ad40a2..6edd0061a19 100644 --- a/homeassistant/components/cast/services.yaml +++ b/homeassistant/components/cast/services.yaml @@ -7,7 +7,6 @@ show_lovelace_view: integration: cast domain: media_player dashboard_path: - required: true example: lovelace-cast selector: text: diff --git a/homeassistant/components/cast/strings.json b/homeassistant/components/cast/strings.json index ce622e48aae..628fc1b02a8 100644 --- a/homeassistant/components/cast/strings.json +++ b/homeassistant/components/cast/strings.json @@ -51,12 +51,12 @@ "description": "Media player entity to show the dashboard view on." }, "dashboard_path": { - "name": "Dashboard path", - "description": "The URL path of the dashboard to show." + "name": "Dashboard", + "description": "The dashboard to show, for example 'energy' or 'lovelace'. If not specified, the default dashboard will be shown." }, "view_path": { - "name": "View path", - "description": "The path of the dashboard view to show." + "name": "View", + "description": "The view to show, for example 'home' for a view with a specified URL or '0' for view without a specified URL. If not specified, the dashboard's default view will be shown." } } }