ha_strava icon indicating copy to clipboard operation
ha_strava copied to clipboard

Integration doesn't show up in Home Assistant

Open Fleshi1981 opened this issue 3 years ago • 19 comments

Wow, that's super weird. Removed and readded the repository and it showed up under integrations immediately (I did this before opening the issue). Added clientid/secret and sensors are there and working. Computers are weird, will close this one out.

I have exact the same issue. I also did the same "steps" you did, only unfortunately for me the Strava integration doesn't show up.

Originally posted by @Fleshi1981 in https://github.com/codingcyclist/ha_strava/issues/21#issuecomment-860178978

Fleshi1981 avatar Jun 13 '21 20:06 Fleshi1981

Same issue on my side. I added your Repository and HACS Integration properly, but then impossible to add Strava Integration ( in Configuration/Integration).
As I already have that integration present, it shows now : "Not Loaded". (1st screenshot here below) If I remove the integration, to try to add-it again, then impossible to see when I search for it (2nd screenshot here below)

Note : I tried to remove HACS Integration and Repository + add them again, but same result Any idea ? Thanks

image

image

sbik38 avatar Jun 22 '21 05:06 sbik38

@sbik38 @Fleshi1981 there is a PR for this issue: https://github.com/codingcyclist/ha_strava/pull/31/commits/62d0fd1ca03909b12eacb6b340e3429f16d18fb7

Until it is merged you can add the version manually. To have the effect to take place i had to restart the docker container instead of running a restart from the UI. Not sure how it is done with other setups.

robotjoosen avatar Jun 30 '21 11:06 robotjoosen

On my custom_components folder, I can find the ha_strava folder, but into that folder, there is no manifest.json file for example. Ti install ha_strava manually, I could copy the code from Github dircetly in ha_strava folder, but where should I copy the file here below then ? (in "custom_components" or in "custom_components/ha_strava" folder ? image

sbik38 avatar Jul 02 '21 06:07 sbik38

This is what my /config/custom_components/ha_strava folder looks like.

__init__.py
__pycache__
camera.py
config_flow.py
const.py
manifest.json
sensor.py
strava_img_urls.pickle
translations

And this is the content of my manifest.json. The version property is added manually.

{
  "domain": "ha_strava",
  "name": "Strava Home Assistant",
  "config_flow": true,
  "documentation": "https://github.com/codingcyclist/ha_strava",
  "requirements": ["aiohttp==3.6.1", "voluptuous==0.11.7"],
  "dependencies": [],
  "version": "0.1.1",
  "codeowners": ["@codingcyclist"]
}

robotjoosen avatar Jul 02 '21 06:07 robotjoosen

I have the same as yours but still not working and HA_Strava still not visible when I add it in Integration

sbik38 avatar Jul 15 '21 19:07 sbik38

Same problem, any solution?

agujensen avatar Jul 19 '21 01:07 agujensen

Same here.

walterb65 avatar Aug 10 '21 21:08 walterb65

Have you tried uninstalling it and reinstall it with the "quick fix". I'm not sure what I did, but it was a combination of removing updating and reinstall.

robotjoosen avatar Aug 11 '21 06:08 robotjoosen

I have uninstalled and installed again a couple of times, but still not visible.

walterb65 avatar Aug 11 '21 16:08 walterb65

Same problem, any solution?

alesson25 avatar Aug 13 '21 03:08 alesson25

I got it working by adding Version Info to Manifest.json.

Original: { "domain": "ha_strava", "name": "Strava Home Assistant", "config_flow": true, "documentation": "https://github.com/codingcyclist/ha_strava", "requirements": ["aiohttp==3.6.1", "voluptuous==0.11.7"], "dependencies": [], "codeowners": ["@codingcyclist"] }

Updated: { "domain": "ha_strava", "name": "Strava Home Assistant", "config_flow": true, "documentation": "https://github.com/codingcyclist/ha_strava", "requirements": ["aiohttp==3.6.1", "voluptuous==0.11.7"], "dependencies": [], "version": "0.1.2",
"codeowners": ["@codingcyclist"] }

walterb65 avatar Aug 13 '21 14:08 walterb65

I tried your workaround @walterb65, still doesn't work for me ...

regisleclerc avatar Aug 22 '21 08:08 regisleclerc

I got it working by adding Version Info to Manifest.json.

Original: { "domain": "ha_strava", "name": "Strava Home Assistant", "config_flow": true, "documentation": "https://github.com/codingcyclist/ha_strava", "requirements": ["aiohttp==3.6.1", "voluptuous==0.11.7"], "dependencies": [], "codeowners": ["@codingcyclist"] }

Updated: { "domain": "ha_strava", "name": "Strava Home Assistant", "config_flow": true, "documentation": "https://github.com/codingcyclist/ha_strava", "requirements": ["aiohttp==3.6.1", "voluptuous==0.11.7"], "dependencies": [], "version": "0.1.2", "codeowners": ["@codingcyclist"] }

I got it working too!!! Thanks!

joelez83 avatar Sep 20 '21 13:09 joelez83

No luck here with the WA, but this error disappered:

2021-11-06T17:08:21.656913535Z 2021-11-06 18:08:21 ERROR (SyncWorker_0) [homeassistant.loader] The custom integration 'ha_strava' does not have a version key in the manifest file and was blocked from loading. See https://developers.home-assistant.io/blog/2021/01/29/custom-integration-changes#versions for more details

moseisleydk avatar Nov 06 '21 18:11 moseisleydk

Well, suddenly it appeared... again, no clue why....

moseisleydk avatar Nov 13 '21 15:11 moseisleydk

I'm adding on, I absolutely can't get this to work. I've tried the manifest.json update but that did not fix things. Even though I install through HACS and the custom repository, the files don't show up in the custom_components folder, and the integration does not show up.

jszust avatar Nov 24 '21 18:11 jszust

Hi @jszust - If they dont show up in the custom_components folder, something else must be wrong, that should happend.

moseisleydk avatar Nov 24 '21 20:11 moseisleydk

Getting the same error

2021-11-25 16:39:29 ERROR (SyncWorker_3) [homeassistant.loader] The custom integration 'ha_strava' does not have a version key in the manifest file and was blocked from loading. See https://developers.home-assistant.io/blog/2021/01/29/custom-integration-changes#versions for more details

CumpsD avatar Nov 25 '21 15:11 CumpsD

Same error here...

jjmateof avatar Dec 16 '21 01:12 jjmateof