mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Add support to hardcode hosts of WeMos
This commit is contained in:
parent
ea22695aa7
commit
8e65afa994
@ -61,6 +61,16 @@ def setup(hass, hosts=None):
|
|||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if hosts:
|
||||||
|
devices = []
|
||||||
|
|
||||||
|
for host in hosts:
|
||||||
|
device = pywemo.device_from_host(host)
|
||||||
|
|
||||||
|
if device:
|
||||||
|
devices.append(device)
|
||||||
|
|
||||||
|
else:
|
||||||
logger.info("Scanning for WeMo devices")
|
logger.info("Scanning for WeMo devices")
|
||||||
devices = pywemo.discover_devices()
|
devices = pywemo.discover_devices()
|
||||||
|
|
||||||
|
2
homeassistant/external/pywemo
vendored
2
homeassistant/external/pywemo
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 0e87fe7d724aca851acfb5e756b751e072b03ca5
|
Subproject commit c620385410ee4335a0e20f7c2a196cf67f8c5cf5
|
Loading…
x
Reference in New Issue
Block a user