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:
Erik Montnemery 2022-10-01 18:55:00 +02:00 committed by GitHub
parent 4cfcf562b5
commit 2de273500e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 25 additions and 908 deletions

View file

@ -67,7 +67,6 @@ async def test_demo_statistics(hass, recorder_mock):
"has_sum": False,
"name": "Outdoor temperature",
"source": "demo",
"state_unit_of_measurement": "°C",
"statistic_id": "demo:temperature_outdoor",
"statistics_unit_of_measurement": "°C",
"unit_class": "temperature",
@ -77,7 +76,6 @@ async def test_demo_statistics(hass, recorder_mock):
"has_sum": True,
"name": "Energy consumption 1",
"source": "demo",
"state_unit_of_measurement": "kWh",
"statistic_id": "demo:energy_consumption_kwh",
"statistics_unit_of_measurement": "kWh",
"unit_class": "energy",
@ -96,7 +94,6 @@ async def test_demo_statistics_growth(hass, recorder_mock):
metadata = {
"source": DOMAIN,
"name": "Energy consumption 1",
"state_unit_of_measurement": "",
"statistic_id": statistic_id,
"unit_of_measurement": "",
"has_mean": False,