mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Hotfix for Netatmo discovery (#3837)
This should definetly fix #2601 Signed-off-by: Hugo D. (jabesq) <jabesq@gmail.com>
This commit is contained in:
committed by
Paulus Schoutsen
parent
d873a7baf0
commit
9a0bb62654
@@ -49,12 +49,11 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
import lnetatmo
|
||||
try:
|
||||
data = WelcomeData(netatmo.NETATMO_AUTH, home)
|
||||
if data.get_camera_names() == []:
|
||||
return None
|
||||
except lnetatmo.NoDevice:
|
||||
return None
|
||||
|
||||
if data.get_camera_names() == []:
|
||||
return None
|
||||
|
||||
sensors = config.get(CONF_MONITORED_CONDITIONS, SENSOR_TYPES)
|
||||
|
||||
for camera_name in data.get_camera_names():
|
||||
|
||||
Reference in New Issue
Block a user