correctly await async method

This commit is contained in:
escoand
2020-01-03 12:27:54 +01:00
parent af536bac0e
commit 3d3f36f3d8

View File

@@ -123,7 +123,7 @@ class SamsungTVConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
_get_ip, user_input[CONF_HOST]
)
self.async_set_unique_id(ip_address)
await self.async_set_unique_id(ip_address)
self._abort_if_unique_id_configured()
self._host = user_input.get(CONF_HOST)
@@ -146,7 +146,7 @@ class SamsungTVConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
_get_ip, user_input[ATTR_SSDP_LOCATION]
)
self.async_set_unique_id(ip_address)
await self.async_set_unique_id(ip_address)
self._abort_if_unique_id_configured()
self._host = user_input[ATTR_SSDP_LOCATION]