home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.1k stars 2.8k forks source link

frontend.set_theme changes every card except entitylist #11086

Closed BCsabaEngine closed 2 years ago

BCsabaEngine commented 2 years ago

Checklist

Describe the issue you are experiencing

I use frontend.set_theme at sunset/sunrise to change to light and dark mode. M yphone and tablet on wall changes the skin automatically without interaction. Two weeks ago the behavior changed: all cards work but entitylist (the most common card type) stay in old mode. When use browser refresh (F5, CTRL+R or navigation) the entitylist goes to perfect skin. But not automatically. All other cards works.

Describe the behavior you expected

EntityList card (entities) should be skinned automatically when run frontend.set_theme without click.

Steps to reproduce the issue

  1. Setup two skin (light and dark mode)
  2. Setup yout user to use system skin mode
  3. Add an empty entitities card and any other card to lovelace.
  4. run frontend.set_theme to change between skins form another machine to see changes without click

What version of Home Assistant Core has the issue?

core-2021.12.7

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Chrome 96.0.4664.110

Which operating system are you using to run this browser?

Linux Elementary 6.1

State of relevant entities

No response

Problem-relevant frontend configuration

title: Iroda
views:
  - path: default_view
    title: Home
    cards:
      - type: entities
        entities:
          - entity: script.sound_on_off
          - entity: switch.allolampa
            icon: mdi:floor-lamp
          - entity: script.kilepo_feny
          - entity: sensor.0x00124b002228e690_temperature
            name: Hőmérséklet
          - entity: sensor.0x00124b002228e690_humidity
            name: Páratartalom
          - entity: script.futes_45_min
            name: Kazán 15 perc
          - entity: switch.heating
            icon: mdi:radiator
            secondary_info: last-changed
            name: Kazán
          - entity: climate.office
            icon: mdi:radiator
            secondary_info: last-changed
            name: Fűtés
        state_color: false
        title: Iroda
        show_header_toggle: false
      - type: vertical-stack
        cards:
          - type: thermostat
            entity: climate.office
            name: ' '
          - type: entities
            entities:
              - entity: sensor.heat_time_last_7_days
              - entity: sensor.heat_ratio_last_7_days
              - entity: sensor.heat_count_last_7_days
      - type: entities
        entities:
          - entity: binary_sensor.updater
          - entity: sensor.backup_state
            icon: mdi:cloud-upload
            secondary_info: last-changed
          - entity: binary_sensor.backups_stale
          - entity: device_tracker.csaba_huawei
          - entity: device_tracker.csaba_vostro
          - entity: sensor.home_assistant_v2_db
            name: Database size
          - entity: sensor.db_size_per_hour
          - entity: binary_sensor.workday_sensor
            icon: mdi:calendar
          - entity: binary_sensor.0x00158d00049fc3ed_occupancy
            name: Mozgás
            secondary_info: last-changed
        title: Bináris érzékelő
      - type: media-control
        entity: media_player.spotify_balazs_csaba

Javascript errors shown in your browser console/inspector

No error and other info.

Additional information

Képernyőkép erről: 2022-01-04 09-40-59 Képernyőkép erről: 2022-01-04 09-41-27

I have tried it in different browser and mobile apps.

BCsabaEngine commented 2 years ago

I have tried without external component (vertical-stack), but same behavior.

BCsabaEngine commented 2 years ago

Maybe the entities card suppress the css auto behavior in under componenst?

It works:

      - entity: binary_sensor.updater

It does not work:

      - type: entities
        entities:
          - entity: binary_sensor.updater
BCsabaEngine commented 2 years ago

It is similar to https://github.com/home-assistant/frontend/pull/10979/commits

and

https://github.com/home-assistant/frontend/issues/10988

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.