mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-03 03:21:54 +08:00
gpio view and refactoring
This commit is contained in:
@@ -244,6 +244,7 @@ class KvmdServer(HttpServer): # pylint: disable=too-many-arguments,too-many-ins
|
||||
await self.__register_ws_client(client)
|
||||
try:
|
||||
await self.__broadcast_event("gpio_scheme_state", await self.__user_gpio.get_scheme())
|
||||
await self.__broadcast_event("gpio_view_state", await self.__user_gpio.get_view())
|
||||
await asyncio.gather(*[
|
||||
self.__broadcast_event(component.event_type, await component.get_state())
|
||||
for component in self.__components
|
||||
|
||||
Reference in New Issue
Block a user