andrewleech / ha_magiqtouch

Home Assistant (HACS) integration to control Seeley MagiQtouch heating and cooling units.
MIT License
24 stars 6 forks source link

Consider calling `receive` with a timeout instead of wrapping it in `wait_for` as its much more efficent #26

Open bdraco opened 2 months ago

bdraco commented 2 months ago

https://github.com/andrewleech/ha_magiqtouch/blob/6bfa8533f9e9bfa08508e0e8d4471033b350e590/custom_components/magiqtouch/magiqtouch.py#L255

https://docs.aiohttp.org/en/stable/_modules/aiohttp/client_ws.html#ClientWebSocketResponse.receive

Noticed this in the logs submitted by a user in https://github.com/home-assistant/core/issues/125001