Skip to content

Commit 6f1c24e

Browse files
Run formatting
1 parent 72d6381 commit 6f1c24e

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

custom_components/powercalc/strategy_lut.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
COLOR_MODE_BRIGHTNESS,
1919
COLOR_MODE_COLOR_TEMP,
2020
COLOR_MODE_HS,
21-
COLOR_MODES_COLOR
21+
COLOR_MODES_COLOR,
2222
)
2323
from homeassistant.core import State
2424

@@ -31,11 +31,7 @@
3131
from .light_model import LightModel
3232
from .strategy_interface import PowerCalculationStrategyInterface
3333

34-
LUT_COLOR_MODES = {
35-
COLOR_MODE_BRIGHTNESS,
36-
COLOR_MODE_COLOR_TEMP,
37-
COLOR_MODE_HS
38-
}
34+
LUT_COLOR_MODES = {COLOR_MODE_BRIGHTNESS, COLOR_MODE_COLOR_TEMP, COLOR_MODE_HS}
3935

4036
_LOGGER = logging.getLogger(__name__)
4137

@@ -167,6 +163,8 @@ async def validate_config(
167163
for color_mode in supported_color_modes:
168164
if color_mode in LUT_COLOR_MODES:
169165
try:
170-
await self._lut_registry.get_lookup_dictionary(self._model, color_mode)
166+
await self._lut_registry.get_lookup_dictionary(
167+
self._model, color_mode
168+
)
171169
except LutFileNotFound:
172170
raise ModelNotSupported("No lookup file found for mode", color_mode)

utils/measure/measure.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
from __future__ import print_function, unicode_literals, annotations
2-
from PyInquirer import prompt
3-
from typing import Iterator
4-
from aiohue.lights import Light
1+
from __future__ import annotations, print_function, unicode_literals
52

6-
import aiohttp
7-
import aiohue
8-
import aioshelly
93
import asyncio
10-
import asyncstdlib as a
114
import csv
125
import json
136
import os
7+
from typing import Iterator
148

9+
import aiohttp
10+
import aiohue
11+
import aioshelly
12+
import asyncstdlib as a
13+
from aiohue.lights import Light
14+
from PyInquirer import prompt
1515

1616
MODE_HS = "hs"
1717
MODE_COLOR_TEMP = "color_temp"

0 commit comments

Comments
 (0)