Skip to content

fix: directory copy issue #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2024
Merged

fix: directory copy issue #179

merged 1 commit into from
Dec 18, 2024

Conversation

yejinze
Copy link
Contributor

@yejinze yejinze commented Dec 18, 2024

When the first time to install home assistant and ssh to it, there is no "/config/custom_components/" directory in the homeassistant docker. At this time, if the user runs the install.sh, there will not create a "xiaomi_home" directory in the "/config/custom_components/" path. Instead, the file structure will be like below:

.
├── custom_components
│   ├── __init__.py
│   ├── binary_sensor.py
│   ├── button.py
│   ├── climate.py
│   ├── config_flow.py
│   ├── cover.py
│   ├── event.py
│   ├── fan.py
│   ├── humidifier.py
│   ├── light.py
│   ├── manifest.json
│   ├── miot
│   ├── notify.py
│   ├── number.py
│   ├── select.py
│   ├── sensor.py
│   ├── switch.py
│   ├── text.py
│   ├── translations
│   ├── vacuum.py
│   └── water_heater.py

And if user wants to search the Xiaomi Home in the home assistant "ADD INTEGRATION" page, there will be no result.
So I add a "if" statement in the install.sh. It can fix the issue. If there is a better method, we can communicate.

@topsworld topsworld merged commit 54e2637 into XiaoMi:main Dec 18, 2024
5 checks passed
@SusanPhevos
Copy link
Contributor

@yejinze
Dear contributor,
Thanks for your contribution to ha_xiaomi_home. When you submitted your pull request, the Contributor License Agreement (CLA) of ha_xiaomi_home was not ready. We sincerely hope that you sign the CLA to ensure that all of your past and future contributions to ha_xiaomi_home are legally authorized.
Please view the CLA at https://cla-assistant.io/xiaomi/ha_xiaomi_home and click "Sign in with GitHub to agree" button to sign it.
Thanks again for your support!
ha_xiaomi_home Team

尊敬的开发者:
感谢您对 ha_xiaomi_home 开源项目的宝贵贡献!鉴于您提交 PR 时,项目的贡献者许可协议(Contributor License Agreement,CLA)尚未完善,我们希望您补签 CLA ,以确保您过往及未来对该项目的所有贡献均能被合法授权。
具体操作:请您在 https://cla-assistant.io/xiaomi/ha_xiaomi_home 中阅读 CLA 并点击“Sign in with GitHub to agree”按钮以签署协议。
再次感谢您的支持!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants