Closed Sku1ly closed 2 years ago
hmmm, so based on the error, it seems that Shortumation failed to locate a valid automation file.
yield from load_automation(auto, tags.get(auto.get("id", ""), {}))
AttributeError: 'str' object has no attribute 'get'
means that at least one of the automations is not an object... do you mind sharing a bit more about your setup? are you using split configs?
Yes I am. I have an empty automations.yaml file and config for the split files looks like this
Here's an example of my folder structure and an automation
HAOS using the Add On store, no docker etc
Ok, I see. In that case this is something I need to fix. I have had a chance to test split configs properly, and now this seems like something that I need to address asap. Related https://github.com/asosnovsky/Shortumation/issues/129
Hmm maybe but I just commented out my automation config so that I was left with a blank automations.yaml and it still did the same thing.
I restarted the add on and I had the same errors before and after.
I have same problem. https://xxxx.duckdns.org:8123/api/hassio_ingress/C-s7eJ3nyk4ZRgYPW0IlL5qRzXAz33nDZfNva6JWKNw/automations/list richiesta: POST Codice di stato: 500 Internal Server Error Indirizzo remoto: 192.168.2.251:8123 Criterio relativo al referrer: strict-origin-when-cross-origin
in browser: {"detail":"Method Not Allowed"}
Hmm maybe but I just commented out my automation config so that I was left with a blank automations.yaml and it still did the same thing.
I restarted the add on and I had the same errors before and after.
I see. I am undergoing a refactor of the automation loader, gonna add a few tests for empty automation files
I have same problem. https://xxxx.duckdns.org:8123/api/hassio_ingress/C-s7eJ3nyk4ZRgYPW0IlL5qRzXAz33nDZfNva6JWKNw/automations/list richiesta: POST Codice di stato: 500 Internal Server Error Indirizzo remoto: 192.168.2.251:8123 Criterio relativo al referrer: strict-origin-when-cross-origin
in browser: {"detail":"Method Not Allowed"}
Yea, I am gonna try to get the refactor out soon. I had a long work week, but I will try to address these issues asap.
@swap83 @Sku1ly Take a look at the new release v0.6.1
@asosnovsky perfect thank you, straight in after correcting a few missing ID files.
Appreciate the fix
Thank you. Now it’s work!
Describe the bug Internal server error when opening web UI.
It might be something in my config file but I am unsure where to look. I have split up my config and automations into separate folders/files.
To Reproduce Steps to reproduce the behavior:
Expected behavior See UI
Screenshots
Desktop (please complete the following information):
Additional context