Add better handling of deprecated configs (#20565)
* Add better handling of deprecated configs * Embed the call to has_at_most_one_key in deprecated * Add tests for checking the deprecated logs * Add thoroughly documented tests * Always check has_at_most_one_key * Fix typing * Move logging helpers to homea new logging helper * Lint * Rename to KeywordMessage instead of BraceMessage * Remove unneeded KeywordStyleAdapter * Lint * Use dict directly rather than dict.keys() when creating set * Patch the version in unit tests, update logging and use parse_version * Re-add KeywordStyleAdapter and fix tests * Lint * Lint
This commit is contained in:
1 parent
ee3631e93e
commit
d5fad33599
5 files changed
+487
-40
No files matched your search
@@ -40,7 +40,7 @@ def test_setup(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 result
|
||||
|
||||
Reference in new issue
Block a user