本帖最后由 cgx 于 2019-5-25 18:17 编辑
0.93 无法使用解决办法
参考: https://developers.home-assistant.io/blog/2019/04/12/new-integration-structure.html
cd ~/.homeassistant/custom_components/
mv switch phicomm_dc1
cd phicomm_dc1
mv phicomm_dc1.py switch.py
touch __init__.py
echo "ewogICJkb21haW4iOiAicGhpY29tbV9kYzEiLAogICJuYW1lIjogIkRDMSBTV0lUQ0giLAogICJkb2N1bWVudGF0aW9uIjogImh0dHBzOi8vYmJzLmhhc3NiaWFuLmNvbS90aHJlYWQtNTYzNy0xLTEuaHRtbCIsCiAgImRlcGVuZGVuY2llcyI6IFtdLAogICJjb2Rlb3duZXJzIjogW10sCiAgInJlcXVpcmVtZW50cyI6IFtdCn0K" | base64 -d > manifest.json
也就是重命名下文件夹 然后添加 __init__.py 文件 manifest.json 按照上面网页填写就ok了 即可
|