Add energy integration (#52001)

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Erik <erik@montnemery.com>
This commit is contained in:
Bram Kragten 2021-07-26 18:37:37 +02:00 committed by GitHub
parent 4b189bd8c5
commit fcc6ea7497
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 1137 additions and 8 deletions

View file

@ -1025,8 +1025,7 @@ async def test_list_statistic_ids(hass, hass_ws_client, units, attributes, unit)
{"id": 4, "type": "history/list_statistic_ids", "statistic_type": "dogs"}
)
response = await client.receive_json()
assert response["success"]
assert response["result"] == []
assert not response["success"]
await client.send_json(
{"id": 5, "type": "history/list_statistic_ids", "statistic_type": "mean"}