integration icon indicating copy to clipboard operation
integration copied to clipboard

Package hacs setup failed. Component hacs unable to import

Open Sjeff opened this issue 7 years ago • 7 comments

Version of HACS

Trying to update from 0.2.1 to 0.4.1

Describe the bug

After updating i receive this message when i check the home assistant config.

Capture

Removed all hacs files and downloaded the latest version again. Getting the same error.

HA version : 0.93.2 Docker running on Ubuntu.

Debug log


No logs found.....

Sjeff avatar Jun 01 '19 20:06 Sjeff

I'm also working with packages. But when i put

hacs: 
  token: !secret my_token

In the configuration.yaml it worked

r3mcos3 avatar Jun 01 '19 21:06 r3mcos3

yeah thats what i have.

hacs:
  token: !secret my_github_access_token

worked with version 0.2.1

Sjeff avatar Jun 01 '19 21:06 Sjeff

Are you working with a split configuration file or with one big configuration file ?

r3mcos3 avatar Jun 01 '19 21:06 r3mcos3

I use a split config file. Just revert back to v 0.2.1 all working again.

Sjeff avatar Jun 02 '19 07:06 Sjeff

That was my problem to, I have a split config but when I added the HACS component direct to the configuration.yaml it start to work.

My configuration.yaml

---
homeassistant:
  # Name of this Home Assistant instance... I've tried to be original... ;)
  name: Home

  # Location required to calculate the time the sun rises and sets
  latitude: !secret zone_home_latitude
  longitude: !secret zone_home_longitude

  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: !secret zone_home_elevation

  # metric for Metric, imperial for Imperial
  unit_system: metric

  # Pick yours from here:
  # http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: !secret time_zone

  # Load packages
  packages: !include_dir_named integrations

  whitelist_external_dirs:
    - /config
    
hacs:
  token: !secret hacs_token

r3mcos3 avatar Jun 02 '19 07:06 r3mcos3

I will try that tonight and report back. Thanks!

Sjeff avatar Jun 02 '19 07:06 Sjeff

Seems to work when adding the HACS component directly in the configuration.yaml file. thanks @r3mcos3 !

Sjeff avatar Jun 02 '19 19:06 Sjeff