better detect legacy eagly devices (#55706)

This commit is contained in:
Paulus Schoutsen 2021-09-04 00:23:35 -07:00 committed by GitHub
parent 7aa454231f
commit 10317fba17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ async def async_get_type(hass, cloud_id, install_code, host):
meters = await hub.get_device_list() meters = await hub.get_device_list()
except aioeagle.BadAuth as err: except aioeagle.BadAuth as err:
raise InvalidAuth from err raise InvalidAuth from err
except aiohttp.ClientError: except (KeyError, aiohttp.ClientError):
# This can happen if it's an eagle-100 # This can happen if it's an eagle-100
meters = None meters = None