-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buttons style not updated on entity state #113
Comments
I can confirm that this is an issue. I tried to fix it but currently can't as my expertise in front end is not that great. A PR will be more than welcome |
Ok managed to find the issue. It is actually a bug in
This is very easy: state:
mapper: |
() => 'off';
style: >
(state, entity) => (entity.state == 'cool' ? { color:
'var(--state-climate-cool-color)' } : { color:
'var(--disabled-text-color)' }) Let me know if it works for you |
Issue: lit/lit#3767 |
fixed in 2.4.5 Please note that in order for it to work you must remove the |
I've spent some time creating the perfect little climate card for my needs, see config below, but it seems that the button icon colors as defined by each of their
style:
sections does not update when the entity is updated. E.g. I have it configured that when the climate state is set toauto
, the auto button is highlighted green. This is the case when I freshly load the page or hit refresh. But when the state when loading the page is e.g.heat
and by clicking the auto button the state changes toauto
, all of the button colors stay as they are. However, the rest of the card does reflect this change...Is that a bug, or something else I need to configure for this to function correctly?
Config:
The text was updated successfully, but these errors were encountered: