Bad identation of a mapping entry [BUG]
lappat opened this issue · 8 comments
Describe the bug
can't see the folder
To Reproduce
Steps to reproduce the behavior:
add the following to my configuration.yaml
resources:
//When using HACS installation method
- {type: js, url: '/www/community/garbage-collection-card/garbage-collection-card.js'}
Expected behavior
to work
Environment (please complete the following information):
- Garbage Collection Card version: 1.20.1
- Browser: Edge
- Browser language: English
Additional context
Add any other context about the problem here.
Please use type: module
instead of type: js
.
I updated the README.
Please get back to me with results.
after update with the following i don't have a error on the config file, but when a try to restart i have the following log;
line added note creating a error inside the file, i,m using studio code server:
Error log:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/hassio/init.py:609
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 8:48:02 AM (2 occurrences)
Last logged: 8:48:09 AM
[140691621942320] The system cannot restart because the configuration is not valid: Integration error: resources - Integration 'resources' not found.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 190, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1630, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1667, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/components/hassio/init.py", line 609, in async_handle_core_service
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Integration error: resources - Integration 'resources' not found.
Thnaks for your quick reply,
Patrick
If you installed it via HACS then the right URL should be:
- {type: module, url: '/hacsfiles/garbage-collection-card/garbage-collection-card.js'}
Glad to hear that.