123
(Taras)
February 20, 2019, 8:49pm
13
This Breaking Change affects a few components:
Deprecate conf_update_interval (@rohankapoorcom - #20924 ) (breaking change) (beta fix)
It scraps update_interval in favor of the more widely used scan_interval. If you’re using components configured with the option update_interval you’re probably affected by this change.
Broadlink
DarkSky
Fedex
UPS
home-assistant:dev ← rohankapoorcom:deprecate-conf-update-interval
opened 12:30AM - 10 Feb 19 UTC
## Description:
As noticed in #20526 , `CONF_UPDATE_INTERVAL` and `CONF_SCAN_… INTERVAL` serve identical purposes and `CONF_SCAN_INTERVAL` is used a lot more.
Now that we have a clean way to deprecate configs without causing breaking changes, (#20565) we can clean this up.
`CONF_UPDATE_INTERVAL` has been deprecated in 0.88 and is set to become invalid in 0.91 (three versions out). In 0.92, we can go ahead and do a final cleanup since all users should have migrated over by then.
**Breaking Change:** `update_interval` has been deprecated and replaced with `scan_interval` in all components and platforms. This is a soft deprecation in this release and will automatically become a hard breaking change in Home Assistant version 0.91.0.
**Pull request in [home-assistant.io](https://github.com/home-assistant/home-assistant.io) with documentation (if applicable):** home-assistant/home-assistant.io#8603
~~I need to go through all of these components/platforms and update the documentation.~~
## Checklist:
- [x] The code change is tested and works locally.
- [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
- [x] There is no commented out code in this PR.
If user exposed functionality or configuration variables are added/changed:
- [x] Documentation added/updated in [home-assistant.io](https://github.com/home-assistant/home-assistant.io)
[ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L14
[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L54
2 Likes