Use zeroconf UUID if not available via IPP properties (#33991)
This commit is contained in:
parent
302e631984
commit
de3f5e8d69
1 changed files with 2 additions and 1 deletions
|
@ -116,7 +116,8 @@ class IPPFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||
_LOGGER.exception("IPP Parse Error")
|
||||
return self.async_abort(reason="parse_error")
|
||||
|
||||
self.discovery_info[CONF_UUID] = info[CONF_UUID]
|
||||
if info[CONF_UUID] is not None:
|
||||
self.discovery_info[CONF_UUID] = info[CONF_UUID]
|
||||
|
||||
await self.async_set_unique_id(self.discovery_info[CONF_UUID])
|
||||
self._abort_if_unique_id_configured(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue