Home Assistant release with the issue:
Home Assistant
0.100.3
Last working Home Assistant release (if known):
Home Assistant
0.100.3
I think this is a service issue as I have not changed versions
Operating environment (Hass.io/Docker/Windows/etc.):
Docker
Integration:
Description of problem:
Was unable to startup home assistant with multipule trace errors, removed components till I found the environment Canada platform and sensor where the cause.
Problem-relevant configuration.yaml
entries and (fill out even if it seems unimportant):
weather:
- platform: environment_canada
sensor:
- platform: environment_canada
Traceback (if applicable):
2019-10-29 19:17:25 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-10-29 19:17:25 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=481 from 2019-10-25 01:31:29)
2019-10-29 19:17:27 ERROR (SyncWorker_17) [homeassistant.components.octoprint] Endpoint: printer Failed to update OctoPrint status. Error: 409 Client Error: CONFLICT for url: http://192.168.1.101:80/api/printer
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry configuration.yaml for mqtt
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 190, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 700, in async_setup_entry
hass, conf, hass.data[DATA_MQTT_HASS_CONFIG], entry
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 506, in _async_setup_discovery
hass, conf[CONF_DISCOVERY_PREFIX], hass_config, config_entry
File "/usr/src/homeassistant/homeassistant/components/mqtt/discovery.py", line 213, in async_start
hass, discovery_topic + "/#", async_device_message_received, 0
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 452, in async_subscribe
encoding,
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 848, in async_subscribe
await self._async_perform_subscription(topic, qos)
File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 883, in _async_perform_subscription
result, _ = await self.hass.async_add_job(self._mqttc.subscribe, topic, qos)
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry mediabox for plex
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 190, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/plex/__init__.py", line 109, in async_setup_entry
await hass.async_add_executor_job(plex_server.connect)
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Google Cast for cast
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 190, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/cast/__init__.py", line 26, in async_setup_entry
await home_assistant_cast.async_setup_ha_cast(hass, entry)
File "/usr/src/homeassistant/homeassistant/components/cast/home_assistant_cast.py", line 26, in async_setup_ha_cast
user = await hass.auth.async_get_user(user_id)
File "/usr/src/homeassistant/homeassistant/auth/__init__.py", line 135, in async_get_user
return await self._store.async_get_user(user_id)
File "/usr/src/homeassistant/homeassistant/auth/auth_store.py", line 72, in async_get_user
await self._async_load()
File "/usr/src/homeassistant/homeassistant/auth/auth_store.py", line 289, in _async_load
await self._async_load_task()
File "/usr/src/homeassistant/homeassistant/auth/auth_store.py", line 296, in _async_load_task
self._store.async_load(),
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.setup] Error during setup of component tts
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 167, in _async_setup_component
hass, processed_config
File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 113, in async_setup
await tts.async_init_cache(use_cache, cache_dir, time_memory, base_url)
File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 227, in async_init_cache
init_tts_cache_dir, cache_dir
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.setup] Error during setup of component notify
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 167, in _async_setup_component
hass, processed_config
File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 158, in async_setup
await asyncio.wait(setup_tasks)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 389, in wait
return await _wait(fs, timeout, return_when, loop)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 482, in _wait
await waiter
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.setup] Error during setup of component binary_sensor
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
hass, config, integration
File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 167, in _async_setup_component
hass, processed_config
File "/usr/src/homeassistant/homeassistant/components/binary_sensor/__init__.py", line 128, in async_setup
await component.async_setup(config)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 121, in async_setup
await asyncio.wait(tasks)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 389, in wait
return await _wait(fs, timeout, return_when, loop)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 482, in _wait
await waiter
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.setup] Error during setup of component group
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
hass, config, integration
File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 167, in _async_setup_component
hass, processed_config
File "/usr/src/homeassistant/homeassistant/components/group/__init__.py", line 216, in async_setup
await _async_process_config(hass, config, component)
File "/usr/src/homeassistant/homeassistant/components/group/__init__.py", line 373, in _async_process_config
mode=mode,
File "/usr/src/homeassistant/homeassistant/components/group/__init__.py", line 488, in async_create_group
await component.async_add_entities([group], True)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 252, in async_add_entities
await asyncio.wait(tasks)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 389, in wait
return await _wait(fs, timeout, return_when, loop)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 482, in _wait
await waiter
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.setup] Error during setup of component person
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
hass, config, integration
File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 167, in _async_setup_component
hass, processed_config
File "/usr/src/homeassistant/homeassistant/components/person/__init__.py", line 283, in async_setup
await manager.async_initialize()
File "/usr/src/homeassistant/homeassistant/components/person/__init__.py", line 178, in async_initialize
await self.component.async_add_entities(entities)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 252, in async_add_entities
await asyncio.wait(tasks)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 389, in wait
return await _wait(fs, timeout, return_when, loop)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 482, in _wait
await waiter
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.setup] Error during setup of component climate
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
hass, config, integration
File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 167, in _async_setup_component
hass, processed_config
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 126, in async_setup
await component.async_setup(config)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 121, in async_setup
await asyncio.wait(tasks)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 389, in wait
return await _wait(fs, timeout, return_when, loop)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 482, in _wait
await waiter
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.components.unifi] Unknown error connecting with UniFi controller:
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.setup] Error during setup of component input_number
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
hass, config, integration
File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 167, in _async_setup_component
hass, processed_config
File "/usr/src/homeassistant/homeassistant/components/input_number/__init__.py", line 124, in async_setup
await component.async_add_entities(entities)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 252, in async_add_entities
await asyncio.wait(tasks)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 389, in wait
return await _wait(fs, timeout, return_when, loop)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 482, in _wait
await waiter
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up platform ping
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
hass, config, integration
File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 435, in wait_for
await waiter
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.setup] Error during setup of component input_select
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
hass, config, integration
File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 167, in _async_setup_component
hass, processed_config
File "/usr/src/homeassistant/homeassistant/components/input_select/__init__.py", line 114, in async_setup
await component.async_add_entities(entities)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 252, in async_add_entities
await asyncio.wait(tasks)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 389, in wait
return await _wait(fs, timeout, return_when, loop)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 482, in _wait
await waiter
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up platform ping
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
hass, config, integration
File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 435, in wait_for
await waiter
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up platform template
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
hass, config, integration
File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 435, in wait_for
await waiter
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Transmission for transmission
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
hass, config, integration
File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 190, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/transmission/__init__.py", line 82, in async_setup_entry
if not await client.async_setup():
File "/usr/src/homeassistant/homeassistant/components/transmission/__init__.py", line 160, in async_setup
await self.hass.async_add_executor_job(self.tm_data.init_torrent_list)
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.setup] Error during setup of component august
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
hass, config, integration
File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 171, in _async_setup_component
component.setup, hass, processed_config # type: ignore
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform nest
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
hass, config, integration
File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 435, in wait_for
await waiter
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.setup] Error during setup of component cloud
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
hass, config, integration
File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 167, in _async_setup_component
hass, processed_config
File "/usr/src/homeassistant/homeassistant/components/cloud/__init__.py", line 184, in async_setup
await prefs.async_initialize()
File "/usr/src/homeassistant/homeassistant/components/cloud/prefs.py", line 46, in async_initialize
prefs = await self._store.async_load()
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 98, in async_load
return await self._load_task
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.setup] Error during setup of component onboarding
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
hass, config, integration
File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 167, in _async_setup_component
hass, processed_config
File "/usr/src/homeassistant/homeassistant/components/onboarding/__init__.py", line 43, in async_setup
data = await store.async_load()
File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 98, in async_load
return await self._load_task
concurrent.futures._base.CancelledError
2019-10-29 19:17:29 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.1.70 for tradfri
Traceback (most recent call last):
File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
log_no_color=args.log_no_color,
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
config_dict, hass, enable_log=False, skip_pip=skip_pip
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
*(async_setup_component(hass, domain, config) for domain in domains_to_load)
File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
return await task # type: ignore
File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
hass, config, integration
File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 190, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/tradfri/__init__.py", line 114, in async_setup_entry
gateway_info = await api(gateway.get_gateway_info())
File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 155, in request
result = await self._execute(api_commands)
File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 146, in _execute
_, res = await self._get_response(msg)
File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 109, in _get_response
raise e
File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
r = await pr.response
concurrent.futures._base.CancelledError
Additional information:
Confirmed on my end too, weirdly not at the same time, but a few hours later
Docker Image, both latest and dev
Strange thing for me was the number of errors it created, I only figured it out after disabling a lot of my config.
Adding my +1 to this as well.
Me too. Docker. 0.100.3.
Here's the output I get running hass --script check_config -c /config/
with platform: environment_canada
enabled
bash-5.0# hass --script check_config -c /config/
Testing configuration at /config/
ERROR:homeassistant.scripts.check_config:BURB
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/scripts/check_config.py", line 206, in check
async_check_ha_config_file(hass)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/helpers/check_config.py", line 156, in async_check_ha_config_file
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
Fatal error while loading config: mismatched tag: line 23, column 8
Failed config
General Errors:
- mismatched tag: line 23, column 8
Looks like somethings amiss with the env_canada python module
bash-5.0# python
Python 3.7.4 (default, Oct 14 2019, 11:42:47)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from env_canada import ECData
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
bash-5.0# pip show env_canada -v
Name: env-canada
Version: 0.0.25
Summary: A package to access meteorological data from Environment Canada
Home-page: https://github.com/michaeldavie/env_canada
Author: Michael Davie
Author-email: [email protected]
License: UNKNOWN
Location: /usr/local/lib/python3.7/site-packages
Requires: imageio, requests-futures, ratelimit, beautifulsoup4, requests, geopy
Required-by:
Metadata-Version: 2.1
Installer: pip
Classifiers:
Programming Language :: Python :: 3
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Entry-points:
Can confirm, ENV Canada sensor works fine, it is the platform that breaks all the things
home-stack_hass.1.zfa3nbe9zmrr@ra | public_value)
home-stack_hass.1.zfa3nbe9zmrr@ra | Exception in thread Thread-1:
home-stack_hass.1.zfa3nbe9zmrr@ra | Traceback (most recent call last):
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
home-stack_hass.1.zfa3nbe9zmrr@ra | self.run()
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/threading.py", line 870, in run
home-stack_hass.1.zfa3nbe9zmrr@ra | self._target(*self._args, **self._kwargs)
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/src/homeassistant/homeassistant/util/logging.py", line 85, in _process
home-stack_hass.1.zfa3nbe9zmrr@ra | self._queue.get(), self.loop
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/concurrent/futures/_base.py", line 430, in result
home-stack_hass.1.zfa3nbe9zmrr@ra | self._condition.wait(timeout)
home-stack_hass.1.zfa3nbe9zmrr@ra | concurrent.futures._base.CancelledError
home-stack_hass.1.zfa3nbe9zmrr@ra |
home-stack_hass.1.zfa3nbe9zmrr@ra | Traceback (most recent call last):
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1630, in feed
home-stack_hass.1.zfa3nbe9zmrr@ra | self.parser.Parse(data, 0)
home-stack_hass.1.zfa3nbe9zmrr@ra | xml.parsers.expat.ExpatError: mismatched tag: line 23, column 8
home-stack_hass.1.zfa3nbe9zmrr@ra |
home-stack_hass.1.zfa3nbe9zmrr@ra | During handling of the above exception, another exception occurred:
home-stack_hass.1.zfa3nbe9zmrr@ra |
home-stack_hass.1.zfa3nbe9zmrr@ra | Traceback (most recent call last):
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
home-stack_hass.1.zfa3nbe9zmrr@ra | "__main__", mod_spec)
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
home-stack_hass.1.zfa3nbe9zmrr@ra | exec(code, run_globals)
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/src/homeassistant/homeassistant/__main__.py", line 407, in <module>
home-stack_hass.1.zfa3nbe9zmrr@ra | sys.exit(main())
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/src/homeassistant/homeassistant/__main__.py", line 399, in main
home-stack_hass.1.zfa3nbe9zmrr@ra | exit_code = asyncio_run(setup_and_run_hass(config_dir, args))
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
home-stack_hass.1.zfa3nbe9zmrr@ra | return loop.run_until_complete(main)
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
home-stack_hass.1.zfa3nbe9zmrr@ra | return future.result()
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/src/homeassistant/homeassistant/__main__.py", line 302, in setup_and_run_hass
home-stack_hass.1.zfa3nbe9zmrr@ra | log_no_color=args.log_no_color,
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 150, in async_from_config_file
home-stack_hass.1.zfa3nbe9zmrr@ra | config_dict, hass, enable_log=False, skip_pip=skip_pip
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 95, in async_from_config_dict
home-stack_hass.1.zfa3nbe9zmrr@ra | await _async_set_up_integrations(hass, config)
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 376, in _async_set_up_integrations
home-stack_hass.1.zfa3nbe9zmrr@ra | *(async_setup_component(hass, domain, config) for domain in domains_to_load)
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/src/homeassistant/homeassistant/setup.py", line 51, in async_setup_component
home-stack_hass.1.zfa3nbe9zmrr@ra | return await task # type: ignore
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/src/homeassistant/homeassistant/setup.py", line 136, in _async_setup_component
home-stack_hass.1.zfa3nbe9zmrr@ra | hass, config, integration
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/src/homeassistant/homeassistant/config.py", line 778, in async_process_component_config
home-stack_hass.1.zfa3nbe9zmrr@ra | platform = p_integration.get_platform(domain)
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
home-stack_hass.1.zfa3nbe9zmrr@ra | f"{self.pkg_path}.{platform_name}"
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
home-stack_hass.1.zfa3nbe9zmrr@ra | return _bootstrap._gcd_import(name[level:], package, level)
home-stack_hass.1.zfa3nbe9zmrr@ra | File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
home-stack_hass.1.zfa3nbe9zmrr@ra | File "<frozen importlib._bootstrap>", line 983, in _find_and_load
home-stack_hass.1.zfa3nbe9zmrr@ra | File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
home-stack_hass.1.zfa3nbe9zmrr@ra | File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
home-stack_hass.1.zfa3nbe9zmrr@ra | File "<frozen importlib._bootstrap_external>", line 728, in exec_module
home-stack_hass.1.zfa3nbe9zmrr@ra | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
home-stack_hass.1.zfa3nbe9zmrr@ra | from env_canada import ECData
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
home-stack_hass.1.zfa3nbe9zmrr@ra | from .ec_radar import *
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
home-stack_hass.1.zfa3nbe9zmrr@ra | root = et.fromstring(xml_string)
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
home-stack_hass.1.zfa3nbe9zmrr@ra | parser.feed(text)
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1632, in feed
home-stack_hass.1.zfa3nbe9zmrr@ra | self._raiseerror(v)
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1531, in _raiseerror
home-stack_hass.1.zfa3nbe9zmrr@ra | raise err
home-stack_hass.1.zfa3nbe9zmrr@ra | xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
home-stack_hass.1.zfa3nbe9zmrr@ra | Exception in thread zeroconf-ServiceBrowser__googlecast._tcp.local.:
home-stack_hass.1.zfa3nbe9zmrr@ra | Traceback (most recent call last):
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
home-stack_hass.1.zfa3nbe9zmrr@ra | self.run()
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/site-packages/zeroconf.py", line 1423, in run
home-stack_hass.1.zfa3nbe9zmrr@ra | handler(self.zc)
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/site-packages/zeroconf.py", line 1363, in <lambda>
home-stack_hass.1.zfa3nbe9zmrr@ra | zeroconf=zeroconf, service_type=self.type, name=name, state_change=state_change
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/site-packages/zeroconf.py", line 1250, in fire
home-stack_hass.1.zfa3nbe9zmrr@ra | h(**kwargs)
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/src/homeassistant/homeassistant/components/zeroconf/__init__.py", line 81, in service_update
home-stack_hass.1.zfa3nbe9zmrr@ra | domain, context={"source": DOMAIN}, data=info
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/src/homeassistant/homeassistant/core.py", line 283, in add_job
home-stack_hass.1.zfa3nbe9zmrr@ra | self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/asyncio/base_events.py", line 728, in call_soon_threadsafe
home-stack_hass.1.zfa3nbe9zmrr@ra | self._check_closed()
home-stack_hass.1.zfa3nbe9zmrr@ra | File "/usr/local/lib/python3.7/asyncio/base_events.py", line 475, in _check_closed
home-stack_hass.1.zfa3nbe9zmrr@ra | raise RuntimeError('Event loop is closed')
home-stack_hass.1.zfa3nbe9zmrr@ra | RuntimeError: Event loop is closed
home-stack_hass.1.zfa3nbe9zmrr@ra |
home-stack_hass.1.zfa3nbe9zmrr@ra | /usr/local/lib/python3.7/threading.py:936: RuntimeWarning: coroutine 'FlowManager.async_init' was never awaited
home-stack_hass.1.zfa3nbe9zmrr@ra | (self.name, _format_exc()), file=_sys.stderr)
home-stack_hass.1.zfa3nbe9zmrr@ra | RuntimeWarning: Enable tracemalloc to get the object allocation traceback
The issue seems to be stemming from Zeroconf, Zeroconf itself will also break home assistant if enabled via config
The issue seems to be stemming from Zeroconf, Zeroconf itself will also break home assistant if enabled via config
I think it's related to the env_canada python module.
bash-5.0# python
Python 3.7.4 (default, Oct 14 2019, 11:42:47)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from env_canada import ECData
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
Yep, there's definitely something up with the env-canada python package. I just tried a fresh docker build using v0.0.25 and v0.0.27 and both error out with:
root@cb3b3580a7b5:/usr/src/app# python
Python 3.7.5 (default, Oct 19 2019, 00:03:48)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from env_canada import ECData
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
Thanks for brining this up. The issue is a bit further down the line; the root cause is a tool that returns a KML file based on a Wikipedia article being unavailable. Obviously, I should handle this instead of breaking HA, and I'll see if there's another way to make this data (the coordinates of radar sites) available more reliably.
Thanks for looking into this @michaeldavie! Offer my help to test the fix if you need volunteers. cheers!
Awesome, thanks. I've pushed version 0.28 of env_canada
to PyPi, which eliminates this issue by including a list of the radar sites directly. It works standalone, but since I'm traveling I can't test it with HA. If someone could test it out, that would be great.
@michaeldavie - just tested 0.28 and it looks like the package is missing the radar_sites.json file. I see the file on the fix_urls1
branch, but not in the PyPi package.
Testing configuration at /config/
INFO:homeassistant.util.package:Attempting install of env_canada==0.0.28
ERROR:homeassistant.scripts.check_config:BURB
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/scripts/check_config.py", line 206, in check
async_check_ha_config_file(hass)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/helpers/check_config.py", line 156, in async_check_ha_config_file
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
site_dict = json.loads(pkg_resources.read_text(env_canada, 'radar_sites.json'))
File "/usr/local/lib/python3.7/importlib/resources.py", line 169, in read_text
with open_text(package, resource, encoding, errors) as fp:
File "/usr/local/lib/python3.7/importlib/resources.py", line 125, in open_text
return TextIOWrapper(reader.open_resource(resource), encoding, errors)
File "<frozen importlib._bootstrap_external>", line 929, in open_resource
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/site-packages/env_canada/radar_sites.json'
Fatal error while loading config: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/site-packages/env_canada/radar_sites.json'
Failed config
General Errors:
- [Errno 2] No such file or directory: '/usr/local/lib/python3.7/site-packages/env_canada/radar_sites.json'
Manually adding the file allows the module to work
curl https://raw.githubusercontent.com/michaeldavie/env_canada/fix_urls/env_canada/radar_sites.json -o /usr/local/lib/python3.7/site-packages/env_canada/radar_sites.json
Thanks, I've pushed 0.0.29 to address this. I've tested it more thoroughly by pulling it from PyPi into a new project and it seems to be working, but let me know what you're seeing.
Looks good!
bash-5.0# hass --script check_config -c /config/
Testing configuration at /config/
INFO:homeassistant.util.package:Attempting install of env_canada==0.0.29
bash-5.0# ls -al /usr/local/lib/python3.7/site-packages/env_canada
total 48
drwxr-xr-x 3 root root 4096 Oct 30 14:23 .
drwxr-xr-x 1 root root 4096 Oct 30 14:23 ..
-rw-r--r-- 1 root root 47 Oct 30 14:23 __init__.py
drwxr-xr-x 2 root root 4096 Oct 30 14:23 __pycache__
-rw-r--r-- 1 root root 12488 Oct 30 14:23 ec_data.py
-rw-r--r-- 1 root root 4539 Oct 30 14:23 ec_radar.py
-rw-r--r-- 1 root root 3248 Oct 30 14:23 radar_sites.json
Excuse my ignorance, but how do I get this update onto my current install? Docker 0.100.3 hass.io
Inside the running docker container, edit the /usr/src/homeassistant/homeassistant/components/environment_canada/manifest.json
file changing env_canada==0.0.27
to env_canada==0.0.29
and then run hass --script check_config -c /config/
Commands:
sed -i 's/0.0.27/0.0.29/' /usr/src/homeassistant/homeassistant/components/environment_canada/manifest.json
hass --script check_config -c /config/
Here's my output, is it ok? I'm sorry, I'm not very good in python, docker and this stuff, I'm more of a PLC guy...
xxxxxxxxxxxxxx@raspberrypi:~ $ docker exec -it homeassistant bash
bash-5.0# sed -i 's/0.0.27/0.0.29/' /usr/src/homeassistant/homeassistant/components/environment_canada/manifest.json
bash-5.0# hass --script check_config -c /config/
Testing configuration at /config/
You need to add the env Canada entry back into your configuration.yaml before running the hass check_config command
You need to add the env Canada entry back into your configuration.yaml before running the hass check_config command
bash-5.0# hass --script check_config -c /config/
Testing configuration at /config/
ERROR:homeassistant.scripts.check_config:BURB
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/scripts/check_config.py", line 206, in check
async_check_ha_config_file(hass)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/helpers/check_config.py", line 156, in async_check_ha_config_file
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/environment_canada/weather.py", line 11, in <module>
from env_canada import ECData
File "/usr/local/lib/python3.7/site-packages/env_canada/__init__.py", line 2, in <module>
from .ec_radar import *
File "/usr/local/lib/python3.7/site-packages/env_canada/ec_radar.py", line 20, in <module>
root = et.fromstring(xml_string)
File "/usr/local/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 23, column 8
Fatal error while loading config: mismatched tag: line 23, column 8
Failed config
General Errors:
- mismatched tag: line 23, column 8
Successful config (partial)
What does cat /usr/src/homeassistant/homeassistant/components/environment_canada/manifest.json
show?
What does
cat /usr/src/homeassistant/homeassistant/components/environment_canada/manifest.json
show?
Oops, look's like I was in 0.0.25
bash-5.0# cat /usr/src/homeassistant/homeassistant/components/environment_canada/manifest.json
{
"domain": "environment_canada",
"name": "Environment Canada",
"documentation": "https://www.home-assistant.io/integrations/environment_canada",
"requirements": [
"env_canada==0.0.25"
],
"dependencies": [],
"codeowners": [
"@michaeldavie"
]
}
Replaced in the :
sed -i 's/0.0.25/0.0.29/' /usr/src/homeassistant/homeassistant/components/environment_canada/manifest.json
Better results, but still not validating config in web browser:
bash-5.0# hass --script check_config -c /config/
Testing configuration at /config/
INFO:homeassistant.util.package:Attempting install of env_canada==0.0.29
When I try and validate the config via the iOS app it responds with configuration valid.
When I try and validate the config via the iOS app it responds with configuration valid.
Yeah, just restarted HA from the Server Control page with the configs disabled, after restart, re-enabled them into configuration.yaml and now it works :D
Anyway we can get a docker bump on the dev branch. The SED approach will work, but you are one restarted process from a broken wife unapproved home :D
Inside the running docker container, edit the
/usr/src/homeassistant/homeassistant/components/environment_canada/manifest.json
file changingenv_canada==0.0.27
toenv_canada==0.0.29
and then runhass --script check_config -c /config/
Commands:
sed -i 's/0.0.27/0.0.29/' /usr/src/homeassistant/homeassistant/components/environment_canada/manifest.json hass --script check_config -c /config/
Will this work for Home Assistant (Not Hass.io) running in Docker?
Just wanted to pitch in and say I had the same issue, and it was resolved by running some commands from this thread - here's what worked for me:
Enter the docker container:
user@tower:~$ sudo docker exec -it home-assistant bash
Then check what version you're on now:
bash-5.0# cat /usr/src/homeassistant/homeassistant/components/environment_canada/manifest.json
And specify the new version with this (updating 25
if your current version is different):
bash-5.0# sed -i 's/0.0.25/0.0.29/' /usr/src/homeassistant/homeassistant/components/environment_canada/manifest.json
Confirm it worked (should see 29
now):
bash-5.0# cat /usr/src/homeassistant/homeassistant/components/environment_canada/manifest.json
Trigger the install of the new version:
bash-5.0# hass --script check_config -c /config/
Testing configuration at /config/
INFO:homeassistant.util.package:Attempting install of env_canada==0.0.29
Exit the docker container and restart Home Assistant:
bash-5.0# exit
user@tower:~$ sudo docker restart home-assistant
Most helpful comment
Thanks for brining this up. The issue is a bit further down the line; the root cause is a tool that returns a KML file based on a Wikipedia article being unavailable. Obviously, I should handle this instead of breaking HA, and I'll see if there's another way to make this data (the coordinates of radar sites) available more reliably.