Skip to content
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

fix: directory copy issue #179

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
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.

2 participants