From 68fb995c63fc131cfa7053adb1746b0d56117298 Mon Sep 17 00:00:00 2001 From: Kane610 Date: Sat, 11 Nov 2017 21:30:18 +0100 Subject: [PATCH] Update axis.py (#10412) --- homeassistant/components/axis.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/axis.py b/homeassistant/components/axis.py index 18f2c054b0c..401afe8c62c 100644 --- a/homeassistant/components/axis.py +++ b/homeassistant/components/axis.py @@ -269,7 +269,8 @@ def setup_device(hass, config, device_config): config) AXIS_DEVICES[device.serial_number] = device - hass.add_job(device.start) + if event_types: + hass.add_job(device.start) return True