Update service domain for local_file from 'camera' to 'local_file'#28890
Update service domain for local_file from 'camera' to 'local_file'#28890balloob merged 6 commits into
Conversation
|
@dshokouhi did not think about that. The end result is that there is no filter applied to the list: While I agree that the camera entity filtered list is better than the unfiltered list I get when I change the domain of the service, it can still lead to bad service calls since it is not guaranteed that all camera entities are using the Thoughts? I realize this is well out of scope of the PR, and I am open to closing this PR and opening a new discussion in the architecture repo or somewhere else more appropriate. |
|
This service should be moved. Flaws in the UI should not guide our backend decisions 👍 |
balloob
left a comment
There was a problem hiding this comment.
One minor comment, ok to merge after this!


Breaking Change:
This change breaks existing service call references to the
camera.local_file_update_file_pathby changing the service call tolocal_file.update_file_path. My understanding is that because this is not a service provided by the basecameracomponent, it should live in the domain of thelocal_filecomponent instead. If that's the case, then it also makes sense to update the service name.Description:
Update the domain and service name for
camera.local_file_update_file_path. I started down this path because of #27289 and based on the introduction here and comment here, I felt this change made sense. If I am misunderstanding the intent please let me know so that I don't keep moving through these changes, as I have noticed this pattern emerging across a bunch of integrations as I commented here. Unfortunately I don't have a device to test most of these integrations.Related issue (if applicable): Related to #27289
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#11234
Checklist:
tox. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
python3 -m script.hassfest.requirements_all.txtby runningpython3 -m script.gen_requirements_all..coveragerc.If the code does not interact with devices: