Custom Updater - Fails, what am I doing wrong?

Hi all,

I can’t get the custom updater working. I followed the guide, placed the custom_updater.py here:
\\xxx.xxx.xxx.xxx\config\custom_components\custom_updater.py

… and added the custom_updater: to my configuration.yaml file.

But here is what I get when I reboot my Home Assistant, after it fails to check the configuration.

INFO:homeassistant.util.package:Attempting install of colorlog==3.1.4
Testing configuration at /config
ERROR:homeassistant.scripts.check_config:BURB
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/scripts/check_config.py", line 207, in check
    res['components'] = check_ha_config_file(hass)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/scripts/check_config.py", line 340, in check_ha_config_file
    component = loader.get_component(hass, domain)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/loader.py", line 92, 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 "/config/custom_components/custom_updater.py", line 7
    <!DOCTYPE html>
    ^
SyntaxError: invalid syntax
Fatal error while loading config: invalid syntax (custom_updater.py, line 7)
Failed config
  General Errors: 
    - invalid syntax (custom_updater.py, line 7)
Successful config (partial)

Huh??

1 Like

My guess is you didn’t copy the file correctly. It looks like you got an HTML page instead of the actual python file. If you’re not familiar with github, when you go to this page to get the file, you should click on the Raw button to get the actual file contents.

You can find more details on its Wiki page. And if you’re having problems with it it’s best to create a new issue on its issues page.

3 Likes

You were right.
Thanks man!

1 Like

I had the same problem, I’m so grateful for your solution post! I don’t know how I would have figured it out on my own. Cheers

2 Likes