Fix missing object assignment for Fritz (#62575)

This commit is contained in:
Simone Chemelli 2021-12-22 12:59:54 +01:00 committed by Franck Nijhof
parent 9b3d44c255
commit d10c5f459f
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -117,7 +117,7 @@ class FritzBoxToolsFlowHandler(ConfigFlow, domain=DOMAIN):
self._port = ssdp_location.port
self._name = (
discovery_info.upnp.get(ssdp.ATTR_UPNP_FRIENDLY_NAME)
or self.fritz_tools.model
or discovery_info.upnp[ssdp.ATTR_UPNP_MODEL_NAME]
)
self.context[CONF_HOST] = self._host