Skip to content

Commit 2585e22

Browse files
committed
whitespace
1 parent 2b87478 commit 2585e22

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

appdaemon/plugins/hass/hassplugin.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import functools
77
import json
88
import ssl
9-
import time
109
from collections.abc import AsyncGenerator, Iterable
1110
from copy import deepcopy
1211
from dataclasses import dataclass, field
@@ -810,11 +809,11 @@ async def safe_delete(self: "HassPlugin"):
810809
@utils.warning_decorator(error_text="Unexpected error while getting hass state")
811810
async def get_complete_state(self) -> dict[str, dict[str, Any]] | None:
812811
"""Required method for all AppDaemon plugins.
813-
812+
814813
Uses the ``/api/states`` endpoint of the `REST API <https://developers.home-assistant.io/docs/api/rest>`_ to
815814
get an array of state objects. Each state has the following attributes: `entity_id`, `state`, `last_changed` and
816815
`attributes`.
817-
816+
818817
The API natively returns the result as a list of dicts, but this turns the result into a single dict based on
819818
`entity_id` to match what AppDaemon needs from this method.
820819
"""
@@ -908,7 +907,7 @@ async def get_history(
908907
filter_entity_id (str, Iterable[str]): Filter on one or more entities.
909908
timestamp (datetime, optional): Determines the beginning of the period. Defaults to 1 day before the time of
910909
the request.
911-
end_time (datetime, optional):
910+
end_time (datetime, optional):
912911
minimal_response (bool, optional): Only return last_changed and state for states other than the first and
913912
last state (much faster). Defaults to `False`
914913
no_attributes (bool, optional): Skip returning attributes from the database (much faster).
@@ -1004,7 +1003,7 @@ async def render_template(self, namespace: str, template: str, **kwargs) -> str
10041003
`REST API <https://developers.home-assistant.io/docs/api/rest>`_.
10051004
10061005
See the `template docs <https://www.home-assistant.io/docs/configuration/templating>`_ for more information.
1007-
1006+
10081007
If successful, this returns a str of the raw response. It should still be processed downstream with
10091008
:py:func:`~ast.literal_eval`, which will turn the result into its real type.
10101009
"""

0 commit comments

Comments
 (0)