My db file is growing so I added recorder configuration to keep only 2 weeks of data.
Just added the following to the config
recorder:
purge_keep_days: 14
Restarted home assistant and got this error: ERROR (MainThread) [homeassistant.config] Invalid config for [recorder]: some but not all values in the same group of inclusion 'purge' @ data['recorder'][<purge>]. Got None. (See /var/opt/homeassistant/configuration.yaml, line 49). Please check the docs at https://home-assistant.io/components/recorder/
I double-checked config and searched for similar errors but cannot figure out what im doing wrong. The recorder component page does not specify any non-optional parameters and i think something is missing… but what ?!