Skip to content

Commit efafb4b

Browse files
committed
Fix issues
1 parent 0c29d28 commit efafb4b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/update-strings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
data_description = {}
2323
for k, _, typ in const.VALIDATION_TUPLES:
2424
desc = const.DOCS[k]
25-
if len(desc) > 40 and typ != bool and typ != cv.entity_ids:
25+
if len(desc) > 40 and typ not in (bool, cv.entity_ids):
2626
data[k] = k
2727
data_description[k] = desc
2828
else:

custom_components/adaptive_lighting/adaptation_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ def _split_service_call_data(service_data: ServiceData) -> list[ServiceData]:
6969
if service_datas and (transition := service_data.get(ATTR_TRANSITION)) is not None:
7070
transition /= len(service_datas)
7171

72-
for service_data in service_datas:
73-
service_data[ATTR_TRANSITION] = transition
72+
for _service_data in service_datas:
73+
_service_data[ATTR_TRANSITION] = transition
7474

7575
return service_datas
7676

0 commit comments

Comments
 (0)