Remove state_unit_of_measurement from metadata DB table (#79370)
* Remove state_unit_of_measurement from metadata DB table * Adjust test
This commit is contained in:
parent
4cfcf562b5
commit
2de273500e
15 changed files with 25 additions and 908 deletions
|
@ -376,7 +376,6 @@ def ws_import_statistics(
|
|||
"""Import statistics."""
|
||||
metadata = msg["metadata"]
|
||||
stats = msg["stats"]
|
||||
metadata["state_unit_of_measurement"] = metadata["unit_of_measurement"]
|
||||
|
||||
if valid_entity_id(metadata["statistic_id"]):
|
||||
async_import_statistics(hass, metadata, stats)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue