hacs/frontend

Unable to add custom repo

syphernl opened this issue · 30 comments

I'm trying to add a custom repo to HACS but once I paste the repo URL in the "Add Custom Repository" field it gets cleared out immediately.
Selecting the category dropdown doesn't work either: it briefly shows and disappears again.

There are no errors in HA logs or the browser console.

HASS version: 0.103.4
HACS Version: 0.20.4

Make sure you have read the issue guidelines and that you filled out the entire template.

Works for me

hacs-issue

Using Chrome 79.0.3945.88

🤣

It also happens in Edge.

I have disabled all Lovelace resources to rule out that one of them is causing this but it still happens. 🤔

The other pages of HACS work fine (e.g. search) but this page seems to be trippy for some reason.


Also happens on Chrome on my phone. Clicking the input field briefly shows the keyboard and disappears again

I have tested the latest versions of Chrome and Firefox and do not see this 🤷‍♂

It used to work fine, I think the last time I used this feature is about 3-4 weeks ago. I just installed Firefox to test this and it also shows the same issue. Any ideas on how to troubleshoot this further?

If I enable "Paint Flashing" in Chrome I can see the whole section is constantly being repainted (the <iron-a11y-announcer>.....</iron-a11y-announcer> part to be precise)

I have no clue yet

in version 0.19.0 the window "CUSTOM REPOSITORIES" did not blink

wmn79 commented

I have the same issue, I am on:
HACS Integration version: 0.20.4
Frontend version: 20191228174812
Home Assistant version: 103.4

I am unable to add a custom repository since the page or card seems to refresh. When I go through all steps in time it seems successful but the repo is not shown in the settings page and the integration not added to the integrations.

It is also not possible to select text in for example the second block/card of an integration or plugin. When I go to installed and open HACS integration. I am able to select everything in the first block/card (with the reinstall, repo and uninstall option). This will stay selected until I deselect it. When I select some text in the second card (with the info from Github info.md) it will get unselected by what seems a page refresh at random intervals. Sometimes after 2 seconds sometimes after 8 etc. I think this is the same behavior as what is preventing me from adding a custom repo. Attached an extract of the log while I tried to add a custom repo. It looks successful but when I go to settings I see nothing added there.
log.txt

Same issue there.

HACS: 0.20.0
Frontend: 20191204.1 - latest
HA: 0.103.0

As I see the "CUSTOM REPOSITORIES" blinks when a message arrives on the websocket.

Can you try to change the hacs_frontend version to 20200101123428 in the manifest.json file and then restart Home Assistant to see if that helps?
When Home Assistant is restarted clear your cache, and make sure it says Frontend version: 20200101123428 under "About"

@ludeeus: changing the frontend version in manifest.json solved the problem for me.

20200101123428

That stops the jumping around and input removal, but repos still aren't showing up anywhere in HACS despite the popup indicating that its been added.

Ive got the following in manifest.json:

"codeowners": [
        "@ludeeus"
    ],
    "config_flow": true,
    "dependencies": [
        "websocket_api",
        "frontend",
        "persistent_notification",
        "lovelace"
    ],
    "documentation": "https://hacs.xyz",
    "domain": "hacs",
    "homeassistant": "0.98.0",
    "name": "HACS (Home Assistant Community Store)",
    "requirements": [
        "aiofiles==0.4.0",
        "aiogithubapi==0.4.3",
        "backoff==1.10.0",
        "hacs_frontend>=20200101123428",
        "integrationhelper==0.2.2",
        "semantic_version==2.8.4"
    ]

But HACS > About still shows:

Integration version: | 0.20.4
Frontend version: | 20200101172953
Repositories: | 379

I have the same issue. Tried to add https://github.com/mishaaq/sun-card
HACS sometimes blanks out the fields before I can add it as a plugin... If I do get the fields populated and tak add it just goes blank and isn't added. I have the latest HACS and can add themes etc and update cards but can't add a new repo.

Latest HACS version have issues with blanking out for some users, update the frontend version as described over here.

wmn79 commented

I have updated the frontend as described above so about now shows:
Frontend version: | 20200101123428

This solves refreshing/blinking, but I am still unable to add repos. Same behavior as @codeclinic states above.

I tested with https://github.com/mishaaq/sun-card and that works fine for me

wmn79 commented

Yep testing with that repo also works for me. The one I tried as integration (https://github.com/GregoryDosh/Home-Assistant-DreamScreen-Service) isn't customized for HACS so probably that is the issue there. Thanks!

Yep testing with that repo also works for me. The one I tried as integration (https://github.com/GregoryDosh/Home-Assistant-DreamScreen-Service) isn't customized for HACS so probably that is the issue there. Thanks!

You're supposed to be able to add any repo, manually.

You're supposed to be able to add any repo, manually.

No, most of the rules https://hacs.xyz/docs/publish/start apply to manual repos as well.

No, most of the rules https://hacs.xyz/docs/publish/start apply to manual repos as well.

I wasn't aware of that. Perhaps that needs to be a bit clearer on the "settings" page. Also, it'd be a better experience if the confirmation popup reflected whether a repo was actually added or refused for some reason. At present it appears to just say that the repo was added regardless of whether it was or not.

Likewise, the settings page isn't really a "settings" page. Perhaps it would make sense to re-label this as something more reflective of what can be done on that page?

I'm not getting the flashing boxes but I'm still unable to add a repo (even: https://github.com/GregoryDosh/Home-Assistant-DreamScreen-Service doesn't work). HACS says it's added the repo but it's nowhere to be seen in HACs and doesn't show as a manually added repo on the settings screen.

Perhaps that needs to be a bit clearer on the "settings" page.

That should be in the docs, probably is not but should be.

refused for some reason

That's a bug, it did in the past. open a separate bug for that.

Likewise, the settings page isn't really a "settings" page.

It was before I moved most stuff to the "HACS menu".
image
It will probably change in the future.

HACS says it's added the repo but it's nowhere to be seen in HACs and doesn't show as a manually added repo on the settings screen.

Open a seperate bug for that in the integration repo, it should not have been accepted.

Marking these comments as offtopic since they are not contributing to the original issue here

I just manually added all the HACS files ontop of the existing HACS directory and now it appears to be working. On that basis it looks like this issue could be related to an update of HACS that has somehow failed.

Latest HACS version have issues with blanking out for some users, update the frontend version as described over here.

as described over where?
I edited the mainfest.json as described above and restarted but HA still has an older version of frontend.... so where are the instructions to update the frontend?

Then you have other issues, HA installs those on startup.

Still not getting new frontend and get these hacs errors now as well

VM279:8   HA RESTART BROWSER EXT         Version: 0.2       
content.js:77 [API CHECK] success! {"message": "API running."}
20200101172953.js:1074 [HACS] Changed properties Map(5) {"repository_view" => undefined, "hass" => undefined, "route" => undefined, "narrow" => undefined, "hacs" => undefined}[[Entries]]0: {"repository_view" => undefined}1: {"hass" => undefined}2: {"route" => undefined}3: {"narrow" => undefined}4: {"hacs" => undefined}size: (...)__proto__: Mapsize: (...)constructor: ƒ Map()get: ƒ ()set: ƒ ()has: ƒ has()delete: ƒ delete()clear: ƒ clear()entries: ƒ entries()forEach: ƒ forEach()keys: ƒ keys()values: ƒ values()Symbol(Symbol.toStringTag): "Map"Symbol(Symbol.iterator): ƒ entries()get size: ƒ size()__proto__: Object
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hacs" => gs}[[Entries]]0: {"hacs" => gs}size: (...)__proto__: Mapsize: (...)constructor: ƒ Map()get: ƒ ()set: ƒ ()has: ƒ has()delete: ƒ delete()clear: ƒ clear()entries: ƒ entries()forEach: ƒ forEach()keys: ƒ keys()values: ƒ values()Symbol(Symbol.toStringTag): "Map"Symbol(Symbol.iterator): ƒ entries()get size: ƒ size()__proto__: Object
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hacs" => gs}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hacs" => gs}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"lovelaceconfig" => undefined}
20200101172953.js:1074 [HACS] Changed properties Map(2) {"critical" => undefined, "hacs" => gs}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}
20200101172953.js:1074 [HACS] Changed properties Map(1) {"hass" => {…}}

That is the new frontend, version 20200101172953, those are not errors, those are info messages.
Those will be hidden when it's fully released.

Same problem here.