home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.58k stars 29.91k forks source link

recorder.purge_entities doesn't do anything #125733

Open bert1111 opened 1 week ago

bert1111 commented 1 week ago

The problem

When I do recorder.purge_entities on an entity nothing happens.

What version of Home Assistant Core has the issue?

core-2024.9.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

I do recorder.purge_entities in developer tools but nothing happens. The green checkmark does appear.

Example YAML snippet

No response

Anything in the logs that might be useful for us?

nothing in logs

Additional information

No response

michaelsidenius commented 1 week ago

See same behavior, same release (MariaDB)

home-assistant[bot] commented 1 week ago

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (recorder) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `recorder` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign recorder` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


recorder documentation recorder source (message by IssueLinks)

bert1111 commented 1 week ago

I do see this today but I don't know if it's related and I haven't tried anything since yesterday. `Logger: homeassistant Bron: data_entry_flow.py:527 Eerst voorgekomen: 09:30:03 (2 gebeurtenissen) Laatst gelogd: 09:30:49

Error doing job: Task exception was never retrieved (None) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1296, in async_init flow, result = await self._async_init(flow_id, handler, context, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1331, in _async_init result = await self._async_handle_step(flow, flow.init_step, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 527, in _async_handle_step if result.get("preview") is not None: ^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'get'`

vb7445 commented 2 days ago

Same response here when doing Recorder: Purge entities from the UI. I get the green checkmark but nothing else ever happens. No entries in the home-assistant.log file. I'm using MariaDB and trying to purge one particular entity. Here's the yaml from the UI

action: recorder.purge_entities
data:
  keep_days: 30
  entity_id:
    - sensor.eh002_well_pump_pressure_raw

System Info

Version | core-2024.9.2
Installation type | Home Assistant OS
Development | false
Supervisor | true
Docker | true
User | root
Virtual environment | false
Python version | 3.12.4
Operating system family | Linux
Operating system version | 6.6.46-haos
CPU architecture | aarch64
Timezone | America/Denver
Configuration directory | /config