Have you reordered files/folders?
should look like: /custom_components/krisinformation/sensor.py
Yes, I have changed to the new folder structure. Having trouble with all sensors disappearing when I activate “krisinformation”
If I’m supposed to be able to help you have to give me more information. It worked before? Is everything up to date, HA as well as this component? What does the log say?
It has worked great before updating. This is what I get in the log. Hope it provides a guide to the problem.
2019-03-11 12:08:38 WARNING (MainThread) [homeassistant.loader] You are using a custom component for custom_updater 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-03-11 12:08:46 WARNING (MainThread) [homeassistant.loader] You are using a custom component for krisinformation 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-03-11 12:08:55 WARNING (MainThread) [homeassistant.setup] Setup of custom_updater is taking over 10 seconds.
2019-03-11 12:09:28 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/discovery.py”, line 161, in async_load_platform
hass, component, hass_config)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File “/usr/lib/python3.5/asyncio/futures.py”, line 382, in iter
return self.result() # May raise too.
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config_entries.py”, line 559, in async_forward_entry_setup
self.hass, component, self._hass_config)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File “/usr/lib/python3.5/asyncio/futures.py”, line 382, in iter
return self.result() # May raise too.
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 241, in _step
result = coro.throw(exc)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 56, in async_setup_component
return await task # type: ignore
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 124, in _async_setup_component
conf_util.async_process_component_config(hass, config, domain)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config.py”, line 743, in async_process_component_config
platform = get_platform(hass, domain, p_name)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py”, line 97, in get_platform
base_paths)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py”, line 166, in _load_file
module = importlib.import_module(path)
File “/usr/lib/python3.5/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 986, in _gcd_import
File “”, line 969, in _find_and_load
File “”, line 958, in _find_and_load_unlocked
File “”, line 673, in _load_unlocked
File “”, line 669, in exec_module
File “”, line 775, in get_code
File “”, line 735, in source_to_code
File “”, line 222, in _call_with_frames_removed
File “/home/homeassistant/.homeassistant/custom_components/krisinformation/sensor.py”, line 71
name = f"{DEFAULT_NAME} {country}"
Yes, I know what’s wrong now! I will provide a fix soon as you are not the first person that has experienced this (although I hear nothing about no other sensors working). It’s python versions that are acting up.
I fixed it now, was such an easy thing to do. v 0.0.10. Please report back if this indeed solved your problem.
Updated sensor.py and restarted. still the same problem. Now the log says this…
Should I update the python version?
2019-03-12 09:55:14 WARNING (MainThread) [homeassistant.loader] You are using a custom component for custom_updater 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-03-12 09:55:21 WARNING (MainThread) [homeassistant.loader] You are using a custom component for krisinformation 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-03-12 09:55:32 WARNING (MainThread) [homeassistant.setup] Setup of custom_updater is taking over 10 seconds.
2019-03-12 09:56:03 ERROR (MainThread) [homeassistant.setup] Error during setup of component custom_updater
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 154, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/home/homeassistant/.homeassistant/custom_components/custom_updater.py”, line 77, in setup
config_show_installabe)
File “/home/homeassistant/.homeassistant/custom_components/custom_updater.py”, line 192, in init
self.cache_versions()
File “/home/homeassistant/.homeassistant/custom_components/custom_updater.py”, line 198, in cache_versions
self.custom_url)
File “/srv/homeassistant/lib/python3.5/site-packages/pyupdate/ha_custom/custom_components.py”, line 50, in get_sensor_data
local_version = get_local_version(local_file)
File “/srv/homeassistant/lib/python3.5/site-packages/pyupdate/ha_custom/custom_components.py”, line 111, in get_local_version
for line in local.readlines():
File “/usr/lib/python3.5/codecs.py”, line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xe4 in position 375: invalid continuation byte
2019-03-12 09:56:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/discovery.py”, line 161, in async_load_platform
hass, component, hass_config)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File “/usr/lib/python3.5/asyncio/futures.py”, line 382, in iter
return self.result() # May raise too.
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config_entries.py”, line 559, in async_forward_entry_setup
self.hass, component, self._hass_config)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File “/usr/lib/python3.5/asyncio/futures.py”, line 382, in iter
return self.result() # May raise too.
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 241, in _step
result = coro.throw(exc)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 56, in async_setup_component
return await task # type: ignore
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 124, in _async_setup_component
conf_util.async_process_component_config(hass, config, domain)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config.py”, line 743, in async_process_component_config
platform = get_platform(hass, domain, p_name)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py”, line 97, in get_platform
base_paths)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py”, line 166, in _load_file
module = importlib.import_module(path)
File “/usr/lib/python3.5/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 986, in _gcd_import
File “”, line 969, in _find_and_load
File “”, line 958, in _find_and_load_unlocked
File “”, line 673, in _load_unlocked
File “”, line 669, in exec_module
File “”, line 775, in get_code
File “”, line 735, in source_to_code
File “”, line 222, in _call_with_frames_removed
File “/home/homeassistant/.homeassistant/custom_components/krisinformation/sensor.py”, line 20
“”"
^
SyntaxError: (unicode error) ‘utf-8’ codec can’t decode byte 0xe4 in position 0: unexpected end of data
2019-03-12 09:56:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/discovery.py”, line 161, in async_load_platform
hass, component, hass_config)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File “/usr/lib/python3.5/asyncio/futures.py”, line 382, in iter
return self.result() # May raise too.
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config_entries.py”, line 559, in async_forward_entry_setup
self.hass, component, self._hass_config)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File “/usr/lib/python3.5/asyncio/futures.py”, line 382, in iter
return self.result() # May raise too.
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 241, in _step
result = coro.throw(exc)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 56, in async_setup_component
return await task # type: ignore
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 124, in _async_setup_component
conf_util.async_process_component_config(hass, config, domain)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config.py”, line 743, in async_process_component_config
platform = get_platform(hass, domain, p_name)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py”, line 97, in get_platform
base_paths)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py”, line 166, in _load_file
module = importlib.import_module(path)
File “/usr/lib/python3.5/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 986, in _gcd_import
File “”, line 969, in _find_and_load
File “”, line 958, in _find_and_load_unlocked
File “”, line 673, in _load_unlocked
File “”, line 669, in exec_module
File “”, line 775, in get_code
File “”, line 735, in source_to_code
File “”, line 222, in _call_with_frames_removed
File “/home/homeassistant/.homeassistant/custom_components/krisinformation/sensor.py”, line 20
“”"
^
SyntaxError: (unicode error) ‘utf-8’ codec can’t decode byte 0xe4 in position 0: unexpected end of data
2019-03-12 09:56:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/discovery.py”, line 161, in async_load_platform
hass, component, hass_config)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File “/usr/lib/python3.5/asyncio/futures.py”, line 382, in iter
return self.result() # May raise too.
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config_entries.py”, line 559, in async_forward_entry_setup
self.hass, component, self._hass_config)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 45, in async_setup_component
return await setup_tasks[domain] # type: ignore
File “/usr/lib/python3.5/asyncio/futures.py”, line 382, in iter
return self.result() # May raise too.
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 241, in _step
result = coro.throw(exc)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 56, in async_setup_component
return await task # type: ignore
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 124, in _async_setup_component
conf_util.async_process_component_config(hass, config, domain)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config.py”, line 743, in async_process_component_config
platform = get_platform(hass, domain, p_name)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py”, line 97, in get_platform
base_paths)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py”, line 166, in _load_file
module = importlib.import_module(path)
File “/usr/lib/python3.5/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 986, in _gcd_import
File “”, line 969, in _find_and_load
File “”, line 958, in _find_and_load_unlocked
File “”, line 673, in _load_unlocked
File “”, line 669, in exec_module
File “”, line 775, in get_code
File “”, line 735, in source_to_code
File “”, line 222, in _call_with_frames_removed
File “/home/homeassistant/.homeassistant/custom_components/krisinformation/sensor.py”, line 20
“”"
^
SyntaxError: (unicode error) ‘utf-8’ codec can’t decode byte 0xe4 in position 0: unexpected end of data
It looks like you have an old version of custom_updater that is giving you issues
please verify what ludeeus suggested and write back if that wasn’t the problem, then I can investigate.
I have the latest version of “custom updater”. Updating of “custom cards” works.
Custom_updater is probably not the problem.
Your error messages tells me that you have a version of custom_updater
that is before version 4.
tracker-card
and custom_updater
is not the same, please upgrade custom_updater
it is causing at least one of the issues you have.
The version I have of “custom_updater” is VERSION = ‘4.2.17’. Is there anyone later?
There is not, but the logs you posted is not from that version
New version - 1.0.0. “Breaking changes”, but no configuration updates needed, only that you need to have > 0.91 of Home Assistant installed. Update the sensor when you update to 0.91, not before.
Hmm, my card doesn’t update. The sensor do report news but the card are stuck on info a week old.
Version 0.91… Any ideas?
I am.going to try a rewrite of the card soon, that hopefully will solve some stuff.
Hi Isabella, I see that the component is in HACS now, is there any possibility that the card will join it there? Custom Component: HACS
Tack på förhand!
It is in there as well. Search “kris” in the store and it will show up!
That’s wierd! I searched for it and it was not there and then tried again in like 2 min and there it was… Hmm
Hi, just got the krisinformation into my hassio. But i only can get one “card” to see. In this youtube https://www.youtube.com/watch?v=EHfor0GcbCM you have 3 "cards, how do i get those into my hassio?
Tack på förhand Jerry