support manual add contact

This commit is contained in:
Florent
2025-07-11 09:17:52 +02:00
parent 29ce8ec6d6
commit 0e54a624f1
3 changed files with 11 additions and 2 deletions

View File

@@ -313,6 +313,9 @@ class CommandHandler:
+ int(contact["adv_lon"]*1e6).to_bytes(4, 'little', signed=True)
return await self.send(data, [EventType.OK, EventType.ERROR])
async def add_contact (self, contact) -> Event:
return await self.update_contact(contact)
async def change_contact_path (self, contact, path) -> Event:
return await self.update_contact(contact, path)