kylegordon
(Kyle Gordon)
November 2, 2022, 11:25pm
1
Recently my CI runs against rc and beta started failing with the following error. It was fine with 2022.10 series, but 2022.11 is also now failing.
Fatal error while loading config: 'issue_registry'
Failed config
General Errors:
- 'issue_registry'
Successful config (partial)
I have narrowed it down to the two statistics sensors defined at home-assistant-config/snmp_bandwidth.yaml at 0c4f50fb1842e1326f28b33227b925b200168e7e · kylegordon/home-assistant-config · GitHub
Removing the two statistics sensors permits a clean run of --script check_config. Putting either of them back creates the error again. The error isn’t very useful, and my two sensors are pretty standard.
What’s going on? Can anyone explain it?
2 Likes
I havent yet updated to 2022.11, but i just stumbled across this error too, when running a configuration check
I have 3 statistics sensors, which i have disabled to see if it makes a difference, and i found the same as you.
No error when my statistics sensors are removed from config.
The sensors still work though.
kylegordon
(Kyle Gordon)
November 3, 2022, 2:02pm
3
I think I’ve tracked it back to the undocumented need for sampling_size to be provided.
opened 01:54PM - 03 Nov 22 UTC
integration: statistics
### The problem
Failure to include sampling_size when defining a statistics sen… sor results in the following unhelpful error
└─(13:42:55)──> docker run --rm -v "${PWD}":/config -it homeassistant/home-assistant:latest hass -c . --script check_config ──(Thu,Nov03)─┘
Testing configuration at /config/.
Fatal error while loading config: 'issue_registry'
Failed config
General Errors:
- 'issue_registry'
Successful config (partial)
The documentation states that sampling_size is optional, and 2 of the 3 examples do not provide it.
### What version of Home Assistant Core has the issue?
2022.11
### What was the last working version of Home Assistant Core?
2022.10
### What type of installation are you running?
Home Assistant Container
### Integration causing the issue
Statistics
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/statistics/
### Diagnostics information
_No response_
### Example YAML snippet
```yaml
---
homeassistant:
# From the documentation
sensor:
- platform: statistics
name: "Bathroom humidity mean over last 24 hours"
entity_id: sensor.bathroom_humidity
state_characteristic: mean
max_age:
hours: 24
- platform: statistics
name: "Bathroom humidity change over 5 minutes"
entity_id: sensor.bathroom_humidity
state_characteristic: change
max_age:
minutes: 5
sampling_size: 50
precision: 1
- platform: statistics
entity_id: binary_sensor.movement
state_characteristic: count
```
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_