-
-
Notifications
You must be signed in to change notification settings - Fork 291
Could you add file manifest.json #230
Description
Hi,
I use your component and it works really nice, but when this component was added to my HA project, CI started failing.
In my CI github does simple config check:
hass -c . --script check_config
When github ran it, I had below error:
Run hass -c . --script check_config
hass -c . --script check_config
shell: /bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.7.6/x64
INFO:homeassistant.util.package:Attempting install of colorlog==4.1.0
Testing configuration at /home/runner/work/home/home/.
INFO:homeassistant.util.package:Attempting install of bt_proximity==0.2
INFO:homeassistant.util.package:Attempting install of pybluez==0.22
....
INFO:homeassistant.util.package:Attempting install of mutagen==1.43.0
INFO:homeassistant.util.package:Attempting install of gTTS-token==1.1.3
Failed config
General Errors:
- Component error: sonoff - Integration 'sonoff' not found.
So clearly HA couldn't find sonoff integration despite of having it in repo.
Solution:
This problem has been solved once I've added manifest.json file which looks like following file: https://github.com/jgrycz/home/blob/master/custom_components/sonoff/manifest.json
Failed build:
https://github.com/jgrycz/home/runs/555180534?check_suite_focus=true
Passed build, with manifest.json:
https://github.com/jgrycz/home/runs/573993740?check_suite_focus=true