From 36984a4ea1a241e1f600482fb867f8d9f0707bb3 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 24 Feb 2018 13:58:19 -0800 Subject: [PATCH] lint --- homeassistant/components/light/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/light/__init__.py b/homeassistant/components/light/__init__.py index 24637430342ab..14e86eeb1fbb6 100644 --- a/homeassistant/components/light/__init__.py +++ b/homeassistant/components/light/__init__.py @@ -292,7 +292,7 @@ async def async_handle(self, intent_obj): response = intent_obj.create_response() - if len(speech_parts) == 0: + if not speech_parts: # No attributes changed speech = 'Turned on {}'.format(state.name) else: parts = ['Changed {} to'.format(state.name)]