Properly connect sensors to hub (#21414)
* Properly connect sensors to hub Refs #20958 * Don't connect (merge) with main device * Provide manufacturer * Linting * Do connect upnp-sensors to main device * Linting * Fix requirements_all.txt
This commit is contained in:
1 parent
adca598172
commit
d1f75fcf32
2 files changed
+13
-3
No files matched your search
@@ -23,7 +23,10 @@ class Device:
|
||||
async def async_discover(cls, hass: HomeAssistantType):
|
||||
"""Discovery UPNP/IGD devices."""
|
||||
_LOGGER.debug('Discovering UPnP/IGD devices')
|
||||
local_ip = hass.data[DOMAIN]['config'].get(CONF_LOCAL_IP)
|
||||
local_ip = None
|
||||
if DOMAIN in hass.data and \
|
||||
'config' in hass.data[DOMAIN]:
|
||||
local_ip = hass.data[DOMAIN]['config'].get(CONF_LOCAL_IP)
|
||||
if local_ip:
|
||||
local_ip = IPv4Address(local_ip)
|
||||
|
||||
|
||||
Reference in new issue
Block a user