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:
parent
ad9ec2190c
commit
481439d387
15 changed files with 249 additions and 120 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue