Skip to content

Instantly share code, notes, and snippets.

@willwhui
Created December 4, 2017 01:44
Show Gist options
  • Save willwhui/982a08bf34177158757afc6fd1c2894a to your computer and use it in GitHub Desktop.
Save willwhui/982a08bf34177158757afc6fd1c2894a to your computer and use it in GitHub Desktop.
修改hass源文件
@willwhui
Copy link
Author

willwhui commented Dec 4, 2017

找到源码位置,比如:

 sudo find / -name xiaomi*.py

得到:

/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/xiaomi_miio.py
/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/xiaomi_miio.py
/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/fan/xiaomi_miio.py
/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/vacuum/xiaomi_miio.py

直接修改这些文件,可以改变与此对应的功能。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment