codingcyclist / ha_strava

Pipe your Activity Data from Strava directly into Home Assistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integration doesn't show up in Home Assistant

Fleshi1981 opened this issue · 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 #21 (comment)

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 @Fleshi1981 there is a PR for this issue: 62d0fd1

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.

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

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"]
}

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

Same problem, any solution?

Same here.

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.

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

Same problem, any solution?

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 tried your workaround @walterb65, still doesn't work for me ...

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!

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

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

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.

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

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

Same error here...