From 0018d2b3f54a18b611d23e8569985e1a6fb7c4e5 Mon Sep 17 00:00:00 2001 From: Robbie Trencheny <me@robbiet.us> Date: Sun, 10 Apr 2016 18:55:54 -0700 Subject: [PATCH] Fix flake8 error on zeroconf.py --- homeassistant/components/zeroconf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/zeroconf.py b/homeassistant/components/zeroconf.py index e54f2cc61bc..0d9cd02aa1c 100644 --- a/homeassistant/components/zeroconf.py +++ b/homeassistant/components/zeroconf.py @@ -31,8 +31,9 @@ def setup(hass, config): zeroconf_name = "{}.{}".format(hass.config.location_name, ZEROCONF_TYPE) + requires_api_password = (hass.config.api.api_password is not None) params = {"version": __version__, "base_url": hass.config.api.base_url, - "requires_api_password": (hass.config.api.api_password is not None)} + "requires_api_password": requires_api_password} info = ServiceInfo(ZEROCONF_TYPE, zeroconf_name, socket.inet_aton(hass.config.api.host), -- GitLab