fix strings.json

This commit is contained in:
Bas Nijholt 2020-10-11 12:41:30 +02:00
commit d1714d800a
3 changed files with 6 additions and 4 deletions

View file

@ -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"
}
}
},

View file

@ -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.

View file

@ -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": {