Fix KeyError in IQVIA (#49968)

This commit is contained in:
Aaron Bach 2021-05-01 17:56:50 -06:00 committed by GitHub
parent 29d72714f3
commit 91e41a0cc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,7 @@ PLATFORMS = ["sensor"]
async def async_setup_entry(hass, entry):
"""Set up IQVIA as config entry."""
hass.data.setdefault(DOMAIN, {})
coordinators = {}
if not entry.unique_id: