Make sure all nest platforms require discovery info (#4734)
This commit is contained in:
parent
87dab37b8a
commit
64b1179c13
4 changed files with 9 additions and 1 deletions
|
@ -60,6 +60,9 @@ _LOGGER = logging.getLogger(__name__)
|
|||
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Setup Nest binary sensors."""
|
||||
if discovery_info is None:
|
||||
return
|
||||
|
||||
nest = hass.data[DATA_NEST]
|
||||
conf = config.get(CONF_MONITORED_CONDITIONS, _VALID_BINARY_SENSOR_TYPES)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue