I downloaded the latest version of HACS as indicated by the installation instructions.
So basically, the GitHub key worked on an old install of HA (same version 0.95.4, different OS). Now it is not working, I put followed the instructions the same as I did before when it worked. I do see a few errors, and in the notifications I see the following:
The following components and platforms could not be set up:
hacs
Please check your config.
2019-07-09 08:47:43 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140236765327256] Sending {'id': 19, 'type': 'result', 'success': True, 'result': [{'notification_id': 'invalid_config', 'message': 'The following components and platforms could not be set up:\n\n - [hacs](https://home-assistant.io/components/hacs/)\n\nPlease check your config.', 'status': 'unread', 'title': 'Invalid config', 'created_at': datetime.datetime(2019, 7, 9, 12, 47, 35, 353526, tzinfo=<UTC>)}]}
2019-07-09 08:47:45 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140236764725488] Sending {'id': 5, 'type': 'result', 'success': True, 'result': None}
2019-07-09 08:47:45 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140236764725488] Sending {'id': 6, 'type': 'result', 'success': True, 'result': [<state sun.sun=above_horizon; next_dawn=2019-07-10T09:07:38+00:00, next_dusk=2019-07-10T01:00:08+00:00, next_midnight=2019-07-10T05:03:46+00:00, next_noon=2019-07-09T17:03:32+00:00, next_rising=2019-07-10T09:39:30+00:00, next_setting=2019-07-10T00:28:12+00:00, elevation=33.66, azimuth=87.56, rising=True, friendly_name=Sun @ 2019-07-09T08:47:35.043540-04:00>, <state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:
- [hacs](https://home-assistant.io/components/hacs/)
Please check your config. @ 2019-07-09T08:47:35.349991-04:00>
2019-07-09 08:48:52 ERROR (MainThread) [homeassistant.setup] Setup failed for hacs: No setup function defined.
This has nothing to do with your key.
Looks like your local hacs directory is wrong.
is there a __init__.py file there?
Correct, I was just stating that the key isnt the issue. It definitely is with the install, and yes the init file is present.
Are you sure?
Setup failed for hacs: No setup function defined.
The init file most definitely have an async_setup function.
Interesting, not sure what happened there, but the init file only contained something like project init file. I just removed the whole hacs directory, pulled down the latest per the documentation, and it worked perfectly. Thanks for the help.
Interesting, not sure what happened there, but the init file only contained something like project init file. I just removed the whole hacs directory, pulled down the latest per the documentation, and it worked perfectly. Thanks for the help.
Most helpful comment
Interesting, not sure what happened there, but the init file only contained something like
project init file. I just removed the whole hacs directory, pulled down the latest per the documentation, and it worked perfectly. Thanks for the help.