Fix detection of DLI sockets in wemo (#112485)
This commit is contained in:
parent
72ac2f127f
commit
87a82e0562
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ class DeviceCoordinator(DataUpdateCoordinator[None]): # pylint: disable=hass-en
|
||||||
def _create_device_info(wemo: WeMoDevice) -> DeviceInfo:
|
def _create_device_info(wemo: WeMoDevice) -> DeviceInfo:
|
||||||
"""Create device information. Modify if special device."""
|
"""Create device information. Modify if special device."""
|
||||||
_dev_info = _device_info(wemo)
|
_dev_info = _device_info(wemo)
|
||||||
if wemo.model_name == "DLI emulated Belkin Socket":
|
if wemo.model_name.lower() == "dli emulated belkin socket":
|
||||||
_dev_info[ATTR_CONFIGURATION_URL] = f"http://{wemo.host}"
|
_dev_info[ATTR_CONFIGURATION_URL] = f"http://{wemo.host}"
|
||||||
_dev_info[ATTR_IDENTIFIERS] = {(DOMAIN, wemo.serial_number[:-1])}
|
_dev_info[ATTR_IDENTIFIERS] = {(DOMAIN, wemo.serial_number[:-1])}
|
||||||
return _dev_info
|
return _dev_info
|
||||||
|
|
Loading…
Add table
Reference in a new issue