Skip to content

Commit

Permalink
disabled unknown cmds again
Browse files Browse the repository at this point in the history
  • Loading branch information
patman15 committed Jan 7, 2025
1 parent 79ef7d3 commit c9ac69d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions custom_components/bms_ble/plugins/daly_bms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Module to support Daly Smart BMS."""

import asyncio
#import asyncio
from collections.abc import Callable
from datetime import datetime as dt
from typing import Any, Final
Expand Down Expand Up @@ -122,18 +122,18 @@ async def _init_connection(self) -> None:
self._log.debug("Exception reading %s: %s", char, ex)
continue

await self._await_reply(
b"\xa5\x40\x02\x08\x00\x00\x00\x00\x00\x00\x00\x00\xef",
normalize_uuid_str("fff2"),
False,
)
await asyncio.sleep(0.1)
await self._await_reply(
b"\x81\x10\x0f\x05\x00\x01\x00\x00\x05\x59",
normalize_uuid_str("fff2"),
False,
)
await asyncio.sleep(0.1)
# await self._await_reply(
# b"\xa5\x40\x02\x08\x00\x00\x00\x00\x00\x00\x00\x00\xef",
# normalize_uuid_str("fff2"),
# False,
# )
# await asyncio.sleep(0.1)
# await self._await_reply(
# b"\x81\x10\x0f\x05\x00\x01\x00\x00\x05\x59",
# normalize_uuid_str("fff2"),
# False,
# )
# await asyncio.sleep(0.1)

# set timestamp for Bulltron battery
ts: dt = dt.now()
Expand Down

0 comments on commit c9ac69d

Please sign in to comment.