Move CONF_UPDATE_INTERVAL to homeassistant.const#20526
Conversation
|
So, just for my clarification, what is the difference between |
|
That's a good question. We don't really need both I think. Problem is that it would be a breaking change to remove either. @fabaff what do you think? |
|
A cursory look suggests that |
|
I think if we are going to do a breaking change, we should do it for all components using It looks we have a deprecated helper already, but it doesn't indicate what the config should be replaced with. That should be an easy change to make though I'll update the PR with this approach if that makes sense. |
|
So let's merge this as is, it's a good change. A breaking change can happen in a future PR. However, after the entity ID breaking change debacle, I prefer to not do breaking changes if we can avoid it. I rather have us standardize it when we move to config entries and leave config yaml as is. |
|
@balloob I agree, avoiding breaking changes is good. Let me push up what I have for doing a soft deprecated and then hard deprecation after a set number of versions and see if that makes sense. |
Description:
CONF_UPDATE_INTERVALis used by a lot of components and platforms and redefined in each module. We should pull it up one level tohomeassistant.constand use it from there instead.Checklist:
tox. Your PR cannot be merged unless tests pass