Skip to content

Commit ab3fcd3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4d062bb commit ab3fcd3

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

custom_components/pyscript/config_flow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Config flow for pyscript."""
2+
23
import json
34
from typing import Any, Dict
45

custom_components/pyscript/entity.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Entity Classes."""
2+
23
from homeassistant.const import STATE_UNKNOWN
34
from homeassistant.helpers.restore_state import RestoreEntity
45
from homeassistant.helpers.typing import StateType

custom_components/pyscript/logbook.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Describe logbook events."""
2+
23
import logging
34

45
from homeassistant.core import callback

custom_components/pyscript/requirements.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Requirements helpers for pyscript."""
2+
23
import glob
34
import logging
45
import os
@@ -298,9 +299,11 @@ async def install_requirements(hass, config_entry, pyscript_folder):
298299
hass,
299300
DOMAIN,
300301
[
301-
f"{package}=={pkg_info[ATTR_VERSION]}"
302-
if pkg_info[ATTR_VERSION] != UNPINNED_VERSION
303-
else package
302+
(
303+
f"{package}=={pkg_info[ATTR_VERSION]}"
304+
if pkg_info[ATTR_VERSION] != UNPINNED_VERSION
305+
else package
306+
)
304307
for package, pkg_info in requirements_to_install.items()
305308
],
306309
)

tests/test_init.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test the pyscript component."""
2+
23
from ast import literal_eval
34
import asyncio
45
from datetime import datetime as dt

0 commit comments

Comments
 (0)