Deprecate conf_update_interval (#20924)

* Deprecate update_interval and replace with scan_interval

* Update tests

* Fix Darksky tests

* Fix Darksky tests correctly

This reverts commit a73384a223ba8a93c682042d9351cd5a7a399183.

* Provide the default for the non deprecated option

* Don't override default schema for sensors
This commit is contained in:
Rohan Kapoor 2019-02-16 21:23:09 -08:00 committed by Martin Hjelmare
parent ad9ec2190c
commit 481439d387
15 changed files with 249 additions and 120 deletions

View file

@ -606,7 +606,8 @@ def deprecated(key: str,
else:
value = default
if (replacement_key
and replacement_key not in config
and (replacement_key not in config
or default == config.get(replacement_key))
and value is not None):
config[replacement_key] = value