Make sure all nest platforms require discovery info (#4734)

This commit is contained in:
Josh Nichols authored and Paulus Schoutsen committed 2016-12-04 14:33:50 -08:00
1 parent 87dab37b8a
commit 64b1179c13
4 files changed
+9 -1

No files matched your search

+1
View File
@@ -26,6 +26,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
"""Set up a Nest Cam."""
if discovery_info is None:
return
camera_devices = hass.data[nest.DATA_NEST].camera_devices()
cameras = [NestCamera(structure, device)
for structure, device in camera_devices]