mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Trådfri component to use new zeroconf discovery (#24041)
* Move tradfri component to use new zeroconf discovery * Will this work? * Remove prints * Correct order in generated zeroconf * Update test_init.py * Update test_init.py * Update test_init.py * Update test_init.py
This commit is contained in:
committed by
Paulus Schoutsen
parent
4b256f3466
commit
3fef9a93cf
@@ -63,7 +63,8 @@ def validate(integrations: Dict[str, Integration], config: Config):
|
||||
config.cache['zeroconf'] = content = generate_and_validate(integrations)
|
||||
|
||||
with open(str(zeroconf_path), 'r') as fp:
|
||||
if fp.read().strip() != content:
|
||||
current = fp.read().strip()
|
||||
if current != content:
|
||||
config.add_error(
|
||||
"zeroconf",
|
||||
"File zeroconf.py is not up to date. "
|
||||
|
||||
Reference in New Issue
Block a user