Extract the icon and state for logbook state changed events#40039
Extract the icon and state for logbook state changed events#40039bdraco merged 2 commits intohome-assistant:devfrom
Conversation
|
These changes are now based on the Frontend PR: home-assistant/frontend#6978 |
I'll make a new PR on top of this one to remove the |
|
Im not seeing the icon come back in the frontend. I do see state now which is nice but looking at multiple entries in the log book and no icon. API Url being called: (I did pull down your changes to my frontend dev environment) Edit: Here is a pastebin of the results returned https://pastebin.com/1n1fCHXe |
|
@zsarnett The icon only comes down if the entity overrides the icon. This should be the rare case |
|
So the main reasoning for pulling the icon in the frontend would be to represent the icons from the state they were changed to with that entry into the log book. Example if the Kitchen Window was closed. I would expect to see the closed window icon and if it was open I would expect to see the open Window icon on that entry. In the frontend we usually get the icon via that attributes of that entity. But that is only the currently icon. From this log book query in the backend I was hoping that the icon could be sent to use to know what icon it was at that time of the entry. Maybe this is something we should do on the frontend with the state and domain. But I am not sure if that covers customization and if it doesn't is that what you are saying your icon property does currently. @bramkragten may know if this is something we can do on the frontend. |
|
I think we need a that takes
|
Proposed change
Extract the icon and state for logbook state changed events.
Supports home-assistant/frontend#6976 (comment)
Type of change
Example entry for
configuration.yaml:# Example configuration.yamlAdditional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: