mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
correctly await async method
This commit is contained in:
@@ -123,7 +123,7 @@ class SamsungTVConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
_get_ip, user_input[CONF_HOST]
|
_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._abort_if_unique_id_configured()
|
||||||
|
|
||||||
self._host = user_input.get(CONF_HOST)
|
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]
|
_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._abort_if_unique_id_configured()
|
||||||
|
|
||||||
self._host = user_input[ATTR_SSDP_LOCATION]
|
self._host = user_input[ATTR_SSDP_LOCATION]
|
||||||
|
Reference in New Issue
Block a user