Update service domain for lifx from 'light' to 'lifx'#29136
Conversation
|
Sorry to be the grumpy janitor. However, the reason that this change has lingered (at least for LIFX) is that it was supposed to be a slightly larger refactor where service registration is moved to Maybe @balloob changed his mind though, that has happened before ;-) |
|
No, we start a long time now to move away from run it on same namespace. I.e. sonos |
|
That is exactly what I say, this PR does not do it like Sonos. Same with my linked comment, the Kodi PR first did the simple change of modifying the domain argument but @balloob then argued that the registration should be moved to |
|
I know Paulus has said that the registration should happen in the component module but I think for most platforms where the action happens in the platform that just brings more complexity without any apparent benefit. I think it's ok to register the service to the integration domain in the platform. Is there any reason to avoid it? |
|
Yeah, I've changed my mind. Let's change the domain first, then try to convince developers to move them to |
Breaking Change:
This change breaks existing service call references to the
light.lifx_*services by changing the service calls to belifx.*.Description:
Update the domain and service name for
lifx.*. See this comment for context: #28890 (comment)Related issue (if applicable): Related to #27289
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#11310
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.