Mariusthvdb / custom-ui

Add templates and icon_color to Home Assistant UI
163 stars 30 forks source link

Fix for HA 2022.4 + #50

Closed bratanon closed 2 years ago

bratanon commented 2 years ago

This seems to work for HA 2022.4.2,

The initial states are NOT handled, but as soon as the websockets recieve an event update it will update the state and badge.

Im not sure yet of any performance issues this might cause, as I have removed the check for _cui_keep in installStatesHook.

bratanon commented 2 years ago

Does not work. I tried this on a HA install with only a few states and when the websocket receives a message after your icon/state has been changed by custom-ui, it will change back to the old one.

Mariusthvdb commented 2 years ago

thx for trying, appreciated. I did test it, and no it doesnt work ;-(