mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
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:
committed by
Martin Hjelmare
parent
ad9ec2190c
commit
481439d387
@@ -24,7 +24,7 @@ def setup_freedns(hass, aioclient_mock):
|
||||
hass.loop.run_until_complete(async_setup_component(hass, freedns.DOMAIN, {
|
||||
freedns.DOMAIN: {
|
||||
'access_token': ACCESS_TOKEN,
|
||||
'update_interval': UPDATE_INTERVAL,
|
||||
'scan_interval': UPDATE_INTERVAL,
|
||||
}
|
||||
}))
|
||||
|
||||
@@ -62,7 +62,7 @@ def test_setup_fails_if_wrong_token(hass, aioclient_mock):
|
||||
result = yield from async_setup_component(hass, freedns.DOMAIN, {
|
||||
freedns.DOMAIN: {
|
||||
'access_token': ACCESS_TOKEN,
|
||||
'update_interval': UPDATE_INTERVAL,
|
||||
'scan_interval': UPDATE_INTERVAL,
|
||||
}
|
||||
})
|
||||
assert not result
|
||||
|
||||
Reference in New Issue
Block a user