[Core] UniFi Client: aiounifi wrapper with UniFi OS detection #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Create
unifi_client.py- a clean abstraction layer wrapping theaiounifilibrary.Tasks
UnifiClientclass with async context manager supportaiounifi.Controllerraw_request(method, endpoint, payload)for pass-throughUNIFI_ALLOW_WRITES)aiohttp.ClientSessionlifecycleUniFi OS Detection Logic
Probe both paths during init:
/api/s/{site}/.../proxy/network/api/s/{site}/...Write Protection
Acceptance Criteria