Prevent duplication of statistics metadata (#71637)
* Prevent duplication of statistics metadata * Add models_schema_28.py * Handle entity renaming as a recorder job * Improve tests
This commit is contained in:
parent
d620072585
commit
23bd64b7a2
8 changed files with 1175 additions and 32 deletions
|
@ -103,7 +103,7 @@ def ws_update_statistics_metadata(
|
|||
) -> None:
|
||||
"""Update statistics metadata for a statistic_id."""
|
||||
hass.data[DATA_INSTANCE].async_update_statistics_metadata(
|
||||
msg["statistic_id"], msg["unit_of_measurement"]
|
||||
msg["statistic_id"], new_unit_of_measurement=msg["unit_of_measurement"]
|
||||
)
|
||||
connection.send_result(msg["id"])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue