lyricnz / tplink_ess

Home Assistant TP-Link Easy Smart Switches integration
MIT License
4 stars 0 forks source link

Convert integration to real async io #23

Open lyricnz opened 1 year ago

lyricnz commented 1 year ago

Is your feature request related to a problem? Please describe. While investigating https://github.com/lyricnz/tplink_ess/issues/22 it became apparently that tplink_ess is doing a lot of (blocking) io in the event loop in HA, which will be impacting overall HA responsiveness.

Describe the solution you'd like This integration should be converted to real asyncio, though this may require changes to the downstream library.

Describe alternatives you've considered hass.async_add_executor_job() could be a stop-gap

See https://developers.home-assistant.io/docs/asyncio_working_with_async/

lyricnz commented 1 year ago

See https://github.com/firstof9/tplink-ess-lib/issues/41