Use zeroconf UUID if not available via IPP properties (#33991)

This commit is contained in:
Chris Talkington 2020-04-10 17:23:07 -05:00 committed by GitHub
parent 302e631984
commit de3f5e8d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,6 +116,7 @@ class IPPFlowHandler(ConfigFlow, domain=DOMAIN):
_LOGGER.exception("IPP Parse Error")
return self.async_abort(reason="parse_error")
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])