diff --git a/custom_components/yi_hack/camera.py b/custom_components/yi_hack/camera.py index bb5ecc3..41a10b8 100644 --- a/custom_components/yi_hack/camera.py +++ b/custom_components/yi_hack/camera.py @@ -128,7 +128,7 @@ def __init__(self, hass, config): self._mqtt_subscription = None self._mqtt_cmnd_topic = config.data[CONF_MQTT_PREFIX] + "/cmnd/camera/switch_on" self._mqtt_stat_topic = config.data[CONF_MQTT_PREFIX] + "/stat/camera/switch_on" - self._state = None + self._state = True self._http_base_url = "http://" + self._host if self._port != 80: