Skip to content

Commit

Permalink
added missing data types
Browse files Browse the repository at this point in the history
  • Loading branch information
patman15 committed Apr 9, 2024
1 parent 71507c2 commit 475a27d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/bms_ble/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ async def stop(self):
LOGGER.debug(f"Stopping device {self.device_info.get(ATTR_NAME)}")
await self._device.disconnect()

async def _async_update_data(self) -> dict[str, float]:
async def _async_update_data(self) -> dict[str, int | float | bool]:
"""Return the latest data from the device."""
LOGGER.debug(f"BMS {self.device_info.get(ATTR_NAME)} data update")

battery_info: dict[str, float] = {}
battery_info: dict[str, int | float | bool] = {}
try:
battery_info.update(await self._device.async_update())
except TimeoutError:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bms_ble/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
"issue_tracker": "https://github.com/patman15/BLE_BMS-HA/issues",
"loggers": ["bms_ble", "ogt_bms"],
"requirements": [],
"version": "1.1.1"
"version": "1.1.2"
}

0 comments on commit 475a27d

Please sign in to comment.