Skip to content

Commit

Permalink
Fixed bug in old systems
Browse files Browse the repository at this point in the history
  • Loading branch information
faanskit committed Feb 11, 2024
1 parent 59d23ed commit 9ca1b1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion custom_components/checkwatt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,11 @@ async def _async_update_data(self) -> CheckwattResp: # noqa: C901
"zip": cw_inst.customer_details["ZipCode"],
"city": cw_inst.customer_details["City"],
"display_name": cw_inst.display_name,
"dso": cw_inst.battery_registration["Dso"],
"energy_provider": self.energy_provider,
"reseller_id": cw_inst.reseller_id,
}
if cw_inst.battery_registration is not None:
resp["dso"] = cw_inst.battery_registration["Dso"]
if cw_inst.energy_data is not None:
resp["battery_power"] = cw_inst.battery_power
resp["grid_power"] = cw_inst.grid_power
Expand Down
2 changes: 1 addition & 1 deletion custom_components/checkwatt/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"homekit": {},
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/faanskit/ha-checkwatt/issues",
"requirements": ["pycheckwatt>=0.2.3", "aiohttp>=3.9.1"],
"requirements": ["pycheckwatt>=0.2.4", "aiohttp>=3.9.1"],
"ssdp": [],
"version": "0.2.1",
"zeroconf": []
Expand Down

0 comments on commit 9ca1b1c

Please sign in to comment.