Skip to content

Commit

Permalink
Return correct data object (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
DCSBL authored Feb 9, 2022
1 parent 0c6e1fc commit b0a9200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homewizard_energy/homewizard_energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit b0a9200

Please sign in to comment.