mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
Configuration check: remove Core and Supervised steps (#39233)
This commit is contained in:
parent
0e98434f60
commit
aa9b2fe90a
@ -1,6 +1,6 @@
|
|||||||
## Configuration check
|
## Configuration check
|
||||||
|
|
||||||
{% if page.installation == "os" or page.installation == "supervised" %}
|
{% if page.installation == "os" %}
|
||||||
|
|
||||||
After changing configuration or automation files, check if the configuration is valid before restarting Home Assistant Core.
|
After changing configuration or automation files, check if the configuration is valid before restarting Home Assistant Core.
|
||||||
|
|
||||||
@ -56,54 +56,4 @@ You can get help from the command line using:
|
|||||||
docker exec homeassistant python -m homeassistant --script check_config --help
|
docker exec homeassistant python -m homeassistant --script check_config --help
|
||||||
```
|
```
|
||||||
|
|
||||||
{% elsif page.installation == "core" %}
|
|
||||||
|
|
||||||
After changing configuration files, check if the configuration is valid before restarting Home Assistant Core.
|
|
||||||
|
|
||||||
1. Switch to the user that is running Home Assistant.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo -u homeassistant -H -s
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Activate the virtual environment that Home Assistant is running in.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
source /srv/homeassistant/bin/activate
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Run the configuration check.
|
|
||||||
|
|
||||||
Run the full check:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
hass --script check_config
|
|
||||||
```
|
|
||||||
|
|
||||||
Listing all loaded files:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
hass --script check_config --files
|
|
||||||
```
|
|
||||||
|
|
||||||
Viewing a integration’s configuration ([`light`](/integrations/light) in this example):
|
|
||||||
|
|
||||||
```bash
|
|
||||||
hass --script check_config --info light
|
|
||||||
```
|
|
||||||
|
|
||||||
Or all integrations’ configuration
|
|
||||||
|
|
||||||
```bash
|
|
||||||
hass --script check_config --info all
|
|
||||||
```
|
|
||||||
|
|
||||||
You can get help from the command line using:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
hass --script check_config --help
|
|
||||||
```
|
|
||||||
|
|
||||||
4. When that is complete, restart the service for it to use the new files.
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user