support path_hash_mode

This commit is contained in:
Florent
2026-02-26 14:24:02 -04:00
parent 03c05d77a2
commit 26730d1efa
4 changed files with 12 additions and 3 deletions

View File

@@ -292,3 +292,7 @@ class DeviceCommands(CommandHandlerBase):
logger.debug("Getting allowed repeat freqs")
return await self.send(b"\x3c", [EventType.ALLOWED_REPEAT_FREQ, EventType.ERROR])
async def set_path_hash_mode(self, mode: int) -> Event:
logger.debug(f"Setting path mode to {mode}")
data = b"\x3d\0" + mode.to_bytes(1, "little")
return await self.send(data, [EventType.OK, EventType.ERROR])