amaximus / garbage-collection-card

Custom Lovelace card for Garbage Collection custom component
MIT License
127 stars 24 forks source link

Bad identation of a mapping entry [BUG] #91

Closed lappat closed 2 years ago

lappat commented 2 years ago

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

Expected behavior

to work

image

Environment (please complete the following information):

Additional context Add any other context about the problem here.

amaximus commented 2 years ago

Please use type: module instead of type: js. I updated the README.

Please get back to me with results.

lappat commented 2 years ago

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:

image

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

amaximus commented 2 years ago

If you installed it via HACS then the right URL should be:

    - {type: module, url: '/hacsfiles/garbage-collection-card/garbage-collection-card.js'}
lappat commented 2 years ago

Hi,

i'm still having the following;

image

Card install in HACS:

image

No error when adding in configuration file:

image

Don't have the HACS in my folder in CONFIG:

image

Let me know,

lappat commented 2 years ago

do you think a need to add in Frontend?

image

amaximus commented 2 years ago

Resources should go into the lovelace section.

capture_02112022_151003

lappat commented 2 years ago

it is working now!

thanks for your support

image

amaximus commented 2 years ago

Glad to hear that.