cgarwood / homeassistant-fullykiosk

Fully Kiosk Browser integration for Home Assistant
Apache License 2.0
153 stars 27 forks source link

setScreenBrightness causes I/O inside event loop #21

Closed bjw-s closed 4 years ago

bjw-s commented 4 years ago

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for fullykiosk doing I/O at custom_components/fullykiosk/light.py, line 71: self.controller.setScreenBrightness(brightness)

This is probably caused because the setScreenBrightness function is not awaited somehow. Maybe needs to be called similar to this? https://developers.home-assistant.io/docs/asyncio_working_with_async/#calling-sync-functions-from-async

bjw-s commented 4 years ago

Should be fixed by #20