File tree Expand file tree Collapse file tree 2 files changed +13
-15
lines changed
custom_components/powercalc Expand file tree Collapse file tree 2 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 1818 COLOR_MODE_BRIGHTNESS ,
1919 COLOR_MODE_COLOR_TEMP ,
2020 COLOR_MODE_HS ,
21- COLOR_MODES_COLOR
21+ COLOR_MODES_COLOR ,
2222)
2323from homeassistant .core import State
2424
3131from .light_model import LightModel
3232from .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 )
Original file line number Diff line number Diff line change 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
93import asyncio
10- import asyncstdlib as a
114import csv
125import json
136import 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
1616MODE_HS = "hs"
1717MODE_COLOR_TEMP = "color_temp"
You can’t perform that action at this time.
0 commit comments