mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
fix strings.json
This commit is contained in:
parent
e655956a3f
commit
d1714d800a
3 changed files with 6 additions and 4 deletions
|
|
@ -6,7 +6,7 @@
|
|||
"title": "Choose a name for the Adaptive Lighting",
|
||||
"description": "Every instance can contain multiple lights!",
|
||||
"data": {
|
||||
"name": "[%key:common::config_flow::data::name%]"
|
||||
"name": "Name"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -254,7 +254,9 @@ def _supported_features(hass: HomeAssistant, light: str):
|
|||
return {key for key, value in _SUPPORT_OPTS.items() if supported_features & value}
|
||||
|
||||
|
||||
def color_difference_redmean(rgb1, rgb2):
|
||||
def color_difference_redmean(
|
||||
rgb1: Tuple[float, float, float], rgb2: Tuple[float, float, float]
|
||||
) -> float:
|
||||
"""Distance between colors in RGB space (redmean metric).
|
||||
|
||||
The maximal distance between (255, 255, 255) and (0, 0, 0) ≈ 765.
|
||||
|
|
|
|||
|
|
@ -6,12 +6,12 @@
|
|||
"title": "Choose a name for the Adaptive Lighting",
|
||||
"description": "Every instance can contain multiple lights!",
|
||||
"data": {
|
||||
"name": "[%key:common::config_flow::data::name%]"
|
||||
"name": "Name"
|
||||
}
|
||||
}
|
||||
},
|
||||
"abort": {
|
||||
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
|
||||
"already_configured": "Device is already configured"
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue