Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and azogue committed Mar 10, 2024
1 parent 98a00bd commit 0e251a8
Show file tree
Hide file tree
Showing 8 changed files with 3,470 additions and 3,462 deletions.
2,010 changes: 1,005 additions & 1,005 deletions tests/api_examples/PRICES_ESIOS_1001_2024_03_09.json

Large diffs are not rendered by default.

442 changes: 221 additions & 221 deletions tests/api_examples/PRICES_ESIOS_10211_2024_03_09.json

Large diffs are not rendered by default.

444 changes: 222 additions & 222 deletions tests/api_examples/PRICES_ESIOS_1739_2024_03_09.json

Large diffs are not rendered by default.

2,010 changes: 1,005 additions & 1,005 deletions tests/api_examples/PRICES_ESIOS_1900_2024_03_09.json

Large diffs are not rendered by default.

2,010 changes: 1,005 additions & 1,005 deletions tests/api_examples/PRICES_ESIOS_2108_2024_03_09.json

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@
import zoneinfo
from datetime import date, datetime, timedelta

from aiopvpc.const import ESIOS_INJECTION, ESIOS_MAG, ESIOS_OMIE, ESIOS_PVPC, KEY_PVPC, ESIOS_MARKET_ADJUSTMENT
from aiopvpc.const import (
ESIOS_INJECTION,
ESIOS_MAG,
ESIOS_MARKET_ADJUSTMENT,
ESIOS_OMIE,
ESIOS_PVPC,
KEY_PVPC,
)
from aiopvpc.pvpc_data import EsiosApiData, PVPCData

TEST_EXAMPLES_PATH = pathlib.Path(__file__).parent / "api_examples"
Expand Down Expand Up @@ -97,7 +104,7 @@ def __init__(self, status=200, exc=None):
},
ESIOS_MARKET_ADJUSTMENT: {
date(2024, 3, 9): load_fixture(_FIXTURE_ESIOS_ADJUSTMENT_2024_03_09)
}
},
}

async def json(self, *_args, **_kwargs):
Expand Down
3 changes: 2 additions & 1 deletion tests/test_ha_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@

from aiopvpc.const import (
ALL_SENSORS,
KEY_ADJUSTMENT,
KEY_INJECTION,
KEY_MAG,
KEY_OMIE,
KEY_PVPC,
TARIFFS,
UTC_TZ, KEY_ADJUSTMENT,
UTC_TZ,
)
from aiopvpc.ha_helpers import get_enabled_sensor_keys, make_sensor_unique_id
from aiopvpc.pvpc_data import BadApiTokenAuthError, PVPCData
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pvpc_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
from aiopvpc.const import (
ALL_SENSORS,
DataSource,
KEY_ADJUSTMENT,
KEY_INJECTION,
KEY_MAG,
KEY_OMIE,
KEY_PVPC,
REFERENCE_TZ,
SENSOR_KEY_TO_DATAID,
KEY_ADJUSTMENT,
)
from aiopvpc.pvpc_data import PVPCData
from tests.conftest import MockAsyncSession, TZ_TEST
Expand Down

0 comments on commit 0e251a8

Please sign in to comment.