Hi @Bertbert Thanks for your component but I cannot set it up and get the following errors:
ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/config_entries.py", line 345, in async_forward_entry_setup
self.hass, component, self._hass_config)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain]
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 56, in async_setup_component
return await task
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 123, in _async_setup_component
await async_process_deps_reqs(hass, config, domain, component)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 233, in async_process_deps_reqs
hass, config, name, module.DEPENDENCIES)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 76, in _async_process_dependencies
results = await asyncio.gather(*tasks, loop=hass.loop)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain]
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 56, in async_setup_component
return await task
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 116, in _async_setup_component
conf_util.async_process_component_config(hass, config, domain)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/config.py", line 673, in async_process_component_config
platform = get_platform(hass, domain, p_name)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 58, in get_platform
return get_component(hass, PLATFORM_FORMAT.format(domain, platform))
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 86, in get_component
module = importlib.import_module(path)
File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 674, in exec_module
File "<frozen importlib._bootstrap_external>", line 781, in get_code
File "<frozen importlib._bootstrap_external>", line 741, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/media_player/virgintivo.py", line 7
<!DOCTYPE html>
^
SyntaxError: invalid syntax
2018-07-13 01:18:38 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/config_entries.py", line 345, in async_forward_entry_setup
self.hass, component, self._hass_config)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain]
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 56, in async_setup_component
return await task
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 123, in _async_setup_component
await async_process_deps_reqs(hass, config, domain, component)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 233, in async_process_deps_reqs
hass, config, name, module.DEPENDENCIES)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 76, in _async_process_dependencies
results = await asyncio.gather(*tasks, loop=hass.loop)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain]
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 56, in async_setup_component
return await task
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 116, in _async_setup_component
conf_util.async_process_component_config(hass, config, domain)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/config.py", line 673, in async_process_component_config
platform = get_platform(hass, domain, p_name)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 58, in get_platform
return get_component(hass, PLATFORM_FORMAT.format(domain, platform))
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 86, in get_component
module = importlib.import_module(path)
File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 674, in exec_module
File "<frozen importlib._bootstrap_external>", line 781, in get_code
File "<frozen importlib._bootstrap_external>", line 741, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/media_player/virgintivo.py", line 7
<!DOCTYPE html>
^
SyntaxError: invalid syntax
2018-07-13 01:18:38 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/config_entries.py", line 345, in async_forward_entry_setup
self.hass, component, self._hass_config)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain]
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 56, in async_setup_component
return await task
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 123, in _async_setup_component
await async_process_deps_reqs(hass, config, domain, component)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 233, in async_process_deps_reqs
hass, config, name, module.DEPENDENCIES)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 76, in _async_process_dependencies
results = await asyncio.gather(*tasks, loop=hass.loop)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 45, in async_setup_component
return await setup_tasks[domain]
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 56, in async_setup_component
return await task
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 116, in _async_setup_component
conf_util.async_process_component_config(hass, config, domain)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/config.py", line 673, in async_process_component_config
platform = get_platform(hass, domain, p_name)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 58, in get_platform
return get_component(hass, PLATFORM_FORMAT.format(domain, platform))
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 86, in get_component
module = importlib.import_module(path)
File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 674, in exec_module
File "<frozen importlib._bootstrap_external>", line 781, in get_code
File "<frozen importlib._bootstrap_external>", line 741, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/media_player/virgintivo.py", line 7
<!DOCTYPE html>
^