Skip to content

Commit

Permalink
format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benleb committed Dec 20, 2020
1 parent 3119b0b commit dcb603b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/automoli/automoli.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ def natural_time(duration: Union[int, float]) -> str:
return natural


def install_pip_package(pkg: str, version: str = "", install_name: Optional[str] = None, pre_release: bool = False) -> None:
def install_pip_package(
pkg: str, version: str = "", install_name: Optional[str] = None, pre_release: bool = False
) -> None:
import importlib
import site
import sys
Expand Down Expand Up @@ -351,7 +353,9 @@ async def motion_detected(self, entity: str, attribute: str, old: str, new: str,

async def motion_event(self, event: str, data: Dict[str, str], kwargs: Dict[str, Any]) -> None:
"""Handle motion events."""
self.lg(f"received '{event}' event from " f"'{data['entity_id'].replace(KEYWORDS['motion'], '')}'", level="DEBUG")
self.lg(
f"received '{event}' event from " f"'{data['entity_id'].replace(KEYWORDS['motion'], '')}'", level="DEBUG"
)

# check if automoli is disabled via home assistant entity
if await self.is_disabled():
Expand Down

0 comments on commit dcb603b

Please sign in to comment.