HANotify icon indicating copy to clipboard operation
HANotify copied to clipboard

Support for 88.0+ Custom Components structure

Open drewrox2009 opened this issue 5 years ago • 1 comments

I can see that you haven't worked on this project in a while, which i understand it works smoothly. I am just getting anxious on the approaching drop in support for the older structure. I am not sure what is required to change in the python file to support the new layout.

drewrox2009 avatar Mar 08 '19 06:03 drewrox2009

If anyone else is reading this, to get HANotify working again, you need to create a "fcm-android" folder in the custom_components directory.

<config>/custom_components/fcm-android

in it, you need to add:

  • the old 'fcm-android.py' file renamed to notify.py
  • a blank file named __init__.py
  • a file named manifest.json containing
{
    "domain": "https://github.com/Crewski/HANotify",
    "name": "HANotify",
    "documentation": "https://github.com/Crewski/HANotify",
    "dependencies": [],
    "codeowners": ["@Crewski"],
    "requirements": []
  }

Then restart Home Assistant and you should be good.

jojo416 avatar Aug 06 '19 17:08 jojo416