mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fixed linting warnings
This commit is contained in:
parent
100a75908b
commit
56184daf59
@ -100,6 +100,7 @@ def get_state(point_in_time, entity_id, run=None):
|
|||||||
return states[0] if states else None
|
return states[0] if states else None
|
||||||
|
|
||||||
|
|
||||||
|
# pylint: disable=unused-argument
|
||||||
def setup(hass, config):
|
def setup(hass, config):
|
||||||
""" Setup history hooks. """
|
""" Setup history hooks. """
|
||||||
hass.http.register_path(
|
hass.http.register_path(
|
||||||
@ -115,6 +116,7 @@ def setup(hass, config):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
# pylint: disable=unused-argument
|
||||||
# pylint: disable=invalid-name
|
# pylint: disable=invalid-name
|
||||||
def _api_last_5_states(handler, path_match, data):
|
def _api_last_5_states(handler, path_match, data):
|
||||||
""" Return the last 5 states for an entity id as JSON. """
|
""" Return the last 5 states for an entity id as JSON. """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user