Remove logbook split_entity_id caching#71359
Conversation
|
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( |
balloob
left a comment
There was a problem hiding this comment.
Nice!
I think that we have a similar approach on state objects too in core.py btw.
Looks like we get |
|
Right, I guess I was just thinking that we could even remove it and let it compute it on the fly so we don't compute it without needing it. |
Ahh.. Yeah that makes sense. We used to always access it because we recorded the domain in the db, but I think it makes sense to make it lazy now |
|
The problem is we call |
Proposed change
Remove logbook split_entity_id caching
This is no longer needed since
split_entity_idis already cached.Type of change
Additional 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: