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:
1 parent
bc17adda8d
commit
84053103f0
15 files changed
+249
-120
No files matched your search
@@ -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