Configuration check: remove Core and Supervised steps (#39233)

This commit is contained in:
c0ffeeca7 2025-05-26 12:00:07 +02:00 committed by GitHub
parent 0e98434f60
commit aa9b2fe90a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 integrations 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 %}