granularity info and minor fixes

This commit is contained in:
Maxim Devaev
2024-11-02 18:06:45 +02:00
parent d4fb640418
commit 0fd1174bc5
8 changed files with 84 additions and 12 deletions

View File

@@ -271,6 +271,12 @@ class UserGpio:
self.__notifier.notify(1)
async def poll_state(self) -> AsyncGenerator[dict, None]:
# ==== Granularity table ====
# - model -- Full
# - state.inputs -- Partial
# - state.outputs -- Partial
# ===========================
prev: dict = {"inputs": {}, "outputs": {}}
while True: # pylint: disable=too-many-nested-blocks
if (await self.__notifier.wait()) > 0: