mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Remove unsupported specifying hosts for wemo
This commit is contained in:
parent
ed1f434a61
commit
ed3bbd98cc
@ -2,7 +2,7 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.helpers import ToggleDevice
|
from homeassistant.helpers import ToggleDevice
|
||||||
from homeassistant.const import ATTR_FRIENDLY_NAME, CONF_HOSTS
|
from homeassistant.const import ATTR_FRIENDLY_NAME
|
||||||
from homeassistant.components.switch import (
|
from homeassistant.components.switch import (
|
||||||
ATTR_TODAY_MWH, ATTR_CURRENT_POWER_MWH)
|
ATTR_TODAY_MWH, ATTR_CURRENT_POWER_MWH)
|
||||||
|
|
||||||
@ -23,11 +23,6 @@ def get_devices(hass, config):
|
|||||||
|
|
||||||
return []
|
return []
|
||||||
|
|
||||||
if CONF_HOSTS in config:
|
|
||||||
switches = (pywemo.device_from_host(host) for host
|
|
||||||
in config[CONF_HOSTS].split(","))
|
|
||||||
|
|
||||||
else:
|
|
||||||
logging.getLogger(__name__).info("Scanning for WeMo devices")
|
logging.getLogger(__name__).info("Scanning for WeMo devices")
|
||||||
switches = pywemo.discover_devices()
|
switches = pywemo.discover_devices()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user