Skip to content

Commit f00f3d6

Browse files
ctalkingtonballoob
authored andcommitted
Use zeroconf UUID if not available via IPP properties (#33991)
1 parent d4dc7f8 commit f00f3d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

homeassistant/components/ipp/config_flow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ async def async_step_zeroconf(self, discovery_info: ConfigType) -> Dict[str, Any
116116
_LOGGER.exception("IPP Parse Error")
117117
return self.async_abort(reason="parse_error")
118118

119-
self.discovery_info[CONF_UUID] = info[CONF_UUID]
119+
if info[CONF_UUID] is not None:
120+
self.discovery_info[CONF_UUID] = info[CONF_UUID]
120121

121122
await self.async_set_unique_id(self.discovery_info[CONF_UUID])
122123
self._abort_if_unique_id_configured(

0 commit comments

Comments
 (0)