By courtesy of @steveredden: https://github.com/python-kasa/python-kasa/issues/888#issuecomment-2145193072