From b0a9200964a8acd19c19d4d94a74047325fbb89e Mon Sep 17 00:00:00 2001 From: Duco Sebel <74970928+DCSBL@users.noreply.github.com> Date: Wed, 9 Feb 2022 21:48:38 +0100 Subject: [PATCH] Return correct data object (#4) --- homewizard_energy/homewizard_energy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homewizard_energy/homewizard_energy.py b/homewizard_energy/homewizard_energy.py index d38ae55..2472f2e 100644 --- a/homewizard_energy/homewizard_energy.py +++ b/homewizard_energy/homewizard_energy.py @@ -70,7 +70,7 @@ async def data(self) -> Data: ) response = await self.request("api/v1/data") - return Device.from_dict(response) + return Data.from_dict(response) async def state(self) -> State | None: """Return the state object."""