dummylabs / thewatchman

Home Assistant custom integration to keep track of missing entities and actions in your config files
MIT License
475 stars 20 forks source link

Intergration will not start #158

Closed jonny190 closed 1 day ago

jonny190 commented 2 days ago

Ive downloaded and installed the 0.6.3 integration via HACS and after adding it in the integration in to 2024.11.1 it refuses to starts giving the below error:

2024-11-19 13:29:25.528 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Watchman for watchman Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/watchman/init.py", line 135, in async_setup_entry await parse_config(hass, reason="changes in watchman configuration") File "/config/custom_components/watchman/init.py", line 340, in parse_config entity_list, service_list, files_parsed, files_ignored = await parse( ^^^^^^^^^^^^ File "/config/custom_components/watchman/utils.py", line 272, in parse async for line in f: File "/usr/local/lib/python3.12/site-packages/anyio/_core/_fileio.py", line 74, in aiter__ line = await self.readline() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/anyio/_core/_fileio.py", line 90, in readline return await to_thread.run_sync(self._fp.readline) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/anyio/to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread return await future ^^^^^^^^^^^^ asyncio.exceptions.CancelledError

dummylabs commented 2 days ago

I've just checked it on HA 2024.11.2 with no issues. It seems like an installation problem. Have you tried removing it via HACS and reinstalling it?

To be on the safe side you can also ensure that custom_components/watchman folder is empty after it is removed from HACS