mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix style issue
This commit is contained in:
parent
8c5759e460
commit
c1f464f478
@ -220,6 +220,7 @@ def humanify(events):
|
|||||||
def _entry_message_from_state(domain, state):
|
def _entry_message_from_state(domain, state):
|
||||||
""" Convert a state to a message for the logbook. """
|
""" Convert a state to a message for the logbook. """
|
||||||
# We pass domain in so we don't have to split entity_id again
|
# We pass domain in so we don't have to split entity_id again
|
||||||
|
# pylint: disable=too-many-return-statements
|
||||||
|
|
||||||
if domain == 'device_tracker':
|
if domain == 'device_tracker':
|
||||||
if state.state == STATE_NOT_HOME:
|
if state.state == STATE_NOT_HOME:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user