Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Feb 27, 2018
1 parent 81a0a1e commit 36984a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/light/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 36984a4

Please sign in to comment.