Netatmo, address comments from #20755 (#21157)

Netatmo component cleanup
This commit is contained in:
Daniel Perna 2019-02-19 10:53:45 +01:00 committed by GitHub
parent baaeaab61d
commit 9d3eaada27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 15 deletions

View file

@ -62,7 +62,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
import pyatmo
try:
data = CameraData(netatmo.NETATMO_AUTH, home)
data = CameraData(hass, netatmo.NETATMO_AUTH, home)
if not data.get_camera_names():
return None
except pyatmo.NoDevice: