Suddenly frontend is not fully working with type errors

I’m running hassio with version 0.75.3. Didn’t change any config yesterday or today but suddenly with the date switching to 1st of September, my frontend is broken:

  • I can’t see any switches nor lights
  • It only shows my z-wave covers.

In the log file I’m suddenly getting errors like

hassio/frontend_latest/app-c65b4028.js:2:12760 TypeError: undefined is not an object (evaluating ‘t.services[e]’)
hassio/frontend_latest/app-c65b4028.js:2:12753 Uncaught TypeError: Cannot read property ‘light’ of undefined
https://raw.githubusercontent.com/andrey-git/home-assistant-custom-ui/master/state-card-custom-ui.html:239:3167 Uncaught TypeError: Cannot read property ‘automation’ of undefined
hassio/frontend_latest/app-c65b4028.js:2:12753 Uncaught TypeError: Cannot read property ‘automation’ of undefined

and so on… also:

  • cloud stopped working

For nicer UI I’m using custom ui:

frontend:
javascript_version: latest
extra_html_url:
- https://raw.githubusercontent.com/andrey-git/home-assistant-custom-ui/master/state-card-custom-ui.html
extra_html_url_es5:
- https://raw.githubusercontent.com/andrey-git/home-assistant-custom-ui/master/state-card-custom-ui-es5.html

so what happened? I don’t have a clue since I didn’t change anything, as I mentioned before.

I had the same issue. Are you using Custom UI? Try updating it to the latest version. This worked for me.

@Kanishkaz how do i update custom ui to the latest version?
I’m asking because the git repo seams not to have changed.

I just ran the update.sh file that came with custom UI.

Oh I see, there was an update on 31st August that broke something. I was using the hosted version so probably this is the issue.

Yes that was the issue. Fix is to hardcode the version/release of custom_ui:

Change this:

frontend:
  javascript_version: latest
  extra_html_url:
    - https://raw.githubusercontent.com/andrey-git/home-assistant-custom-ui/master/state-card-custom-ui.html
  extra_html_url_es5:
    - https://raw.githubusercontent.com/andrey-git/home-assistant-custom-ui/master/state-card-custom-ui-es5.html

into this:

frontend:
  javascript_version: latest
  extra_html_url:
    - https://raw.githubusercontent.com/andrey-git/home-assistant-custom-ui/20180602/state-card-custom-ui.html
  extra_html_url_es5:
    - https://raw.githubusercontent.com/andrey-git/home-assistant-custom-ui/20180602/state-card-custom-ui-es5.html
1 Like