lovelace-card-mod: CSS doesn't seem to work when casting Lovelace page to my Google Hub

My Home Assistant version: 2021.6.0

My lovelace configuration method (GUI or yaml): GUI

What I am doing: Casting a Lovelace tab

What I expected to happen: Additional CSS to be rendered

What happened instead: Nothing

Minimal steps to reproduce:

# The least amount of code possible to reproduce my error
        card_mod:
          style: |
            .name {
            font-size: 30px;
            }
            div {
            font-size: 20px;
            }
# End of code

Error messages from the browser console:


By putting an X in the boxes ([]) below, I indicate that I:

  • Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).

  • Have made sure I am using the latest version of the plugin.

  • Have followed the troubleshooting steps of the “Common Problems” section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.

  • Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 14
  • Comments: 33

Most upvoted comments

Hello, I still have the incident with version 3.2.0

I am having this issue as well… Any news about this?

Same issue here, running HA 2022.5.2 currently.

Using the built-in Google Cast service (cast.show_lovelace_view service).

This is across Chromecast-capable devices:

  • Sony Bravia XR-65X90J
  • Nvidia Shield Pro 2019
  • Google Nest Hub
  • Google Nest Hub Max

Side question for anyone following this thread: Is there a way to change the resolution the device renders the Dashboard? The Sony and Shield Pro appear to be 720p whereas the much smaller display Google Nest Hub/Hub Max appear to be 1080p. A lot of wasted real estate on the TV and Shield Pro that would be great to take advantage of.