From 1331b792db97839abeadaa3e7f043a324db56616 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sun, 13 Sep 2020 10:46:08 +0200 Subject: [PATCH] small changes --- .../circadian_lighting/strings.json | 50 ++++++++++--------- .../circadian_lighting/switch.py | 2 +- .../circadian_lighting/translations/en.json | 48 +++++++++--------- 3 files changed, 52 insertions(+), 48 deletions(-) diff --git a/custom_components/circadian_lighting/strings.json b/custom_components/circadian_lighting/strings.json index d9090b82..a1f4401b 100644 --- a/custom_components/circadian_lighting/strings.json +++ b/custom_components/circadian_lighting/strings.json @@ -17,30 +17,32 @@ "options": { "step": { "init": { + "title": "Adaptive Lighting options", + "description": "All settings for a Adaptive Lighting component. The option names correspond with the YAML settings.", "data": { - "lights_brightness": "lights_brightness", - "lights_mired": "lights_mired", - "lights_rgb": "lights_rgb", - "lights_xy": "lights_xy", - "disable_brightness_adjust": "disable_brightness_adjust", - "disable_entity": "disable_entity", - "disable_state": "disable_state", - "initial_transition": "initial_transition", - "interval": "interval", - "max_brightness": "max_brightness", - "max_colortemp": "max_colortemp", - "min_brightness": "min_brightness", - "min_colortemp": "min_colortemp", - "only_once": "only_once", - "sleep_brightness": "sleep_brightness", - "sleep_colortemp": "sleep_colortemp", - "sleep_entity": "sleep_entity", - "sleep_state": "sleep_state", - "sunrise_offset": "sunrise_offset", - "sunrise_time": "sunrise_time", - "sunset_offset": "sunset_offset", - "sunset_time": "sunset_time", - "transition": "transition" + "lights_brightness": "`lights_brightness`", + "lights_mired": "`lights_mired`", + "lights_rgb": "`lights_rgb`", + "lights_xy": "`lights_xy`", + "disable_brightness_adjust": "`disable_brightness_adjust`", + "disable_entity": "`disable_entity`", + "disable_state": "`disable_state`", + "initial_transition": "`initial_transition`, the transition of the lights when turning them on or when `disable_state` or `sleep_state` change", + "interval": "`interval`", + "max_brightness": "`max_brightness`", + "max_colortemp": "`max_colortemp`", + "min_brightness": "`min_brightness`", + "min_colortemp": "`min_colortemp`", + "only_once": "`only_once`", + "sleep_brightness": "`sleep_brightness`", + "sleep_colortemp": "`sleep_colortemp`", + "sleep_entity": "`sleep_entity`", + "sleep_state": "`sleep_state`", + "sunrise_offset": "`sunrise_offset`", + "sunrise_time": "`sunrise_time`", + "sunset_offset": "`sunset_offset`", + "sunset_time": "`sunset_time`", + "transition": "`transition`" } } }, @@ -48,4 +50,4 @@ "retrive_error": "Error retriving servers list" } } -} \ No newline at end of file +} diff --git a/custom_components/circadian_lighting/switch.py b/custom_components/circadian_lighting/switch.py index a9ec2d4d..4833cd74 100755 --- a/custom_components/circadian_lighting/switch.py +++ b/custom_components/circadian_lighting/switch.py @@ -10,7 +10,7 @@ In addition, the component sets your lights to a nice warm white at 1% in "Sleep which is far brighter than starlight but won't reset your adaptive rhythm or break down too much rhodopsin in your eyes. -Human circadiam rhythms are heavily influenced by ambient light levels and +Human circadian rhythms are heavily influenced by ambient light levels and hues. Hormone production, brainwave activity, mood and wakefulness are just some of the cognitive functions tied to cyclical natural light. http://en.wikipedia.org/wiki/Zeitgeber diff --git a/custom_components/circadian_lighting/translations/en.json b/custom_components/circadian_lighting/translations/en.json index 973a5d64..a1f4401b 100644 --- a/custom_components/circadian_lighting/translations/en.json +++ b/custom_components/circadian_lighting/translations/en.json @@ -17,30 +17,32 @@ "options": { "step": { "init": { + "title": "Adaptive Lighting options", + "description": "All settings for a Adaptive Lighting component. The option names correspond with the YAML settings.", "data": { - "lights_brightness": "lights_brightness", - "lights_mired": "lights_mired", - "lights_rgb": "lights_rgb", - "lights_xy": "lights_xy", - "disable_brightness_adjust": "disable_brightness_adjust", - "disable_entity": "disable_entity", - "disable_state": "disable_state", - "initial_transition": "initial_transition", - "interval": "interval", - "max_brightness": "max_brightness", - "max_colortemp": "max_colortemp", - "min_brightness": "min_brightness", - "min_colortemp": "min_colortemp", - "only_once": "only_once", - "sleep_brightness": "sleep_brightness", - "sleep_colortemp": "sleep_colortemp", - "sleep_entity": "sleep_entity", - "sleep_state": "sleep_state", - "sunrise_offset": "sunrise_offset", - "sunrise_time": "sunrise_time", - "sunset_offset": "sunset_offset", - "sunset_time": "sunset_time", - "transition": "transition" + "lights_brightness": "`lights_brightness`", + "lights_mired": "`lights_mired`", + "lights_rgb": "`lights_rgb`", + "lights_xy": "`lights_xy`", + "disable_brightness_adjust": "`disable_brightness_adjust`", + "disable_entity": "`disable_entity`", + "disable_state": "`disable_state`", + "initial_transition": "`initial_transition`, the transition of the lights when turning them on or when `disable_state` or `sleep_state` change", + "interval": "`interval`", + "max_brightness": "`max_brightness`", + "max_colortemp": "`max_colortemp`", + "min_brightness": "`min_brightness`", + "min_colortemp": "`min_colortemp`", + "only_once": "`only_once`", + "sleep_brightness": "`sleep_brightness`", + "sleep_colortemp": "`sleep_colortemp`", + "sleep_entity": "`sleep_entity`", + "sleep_state": "`sleep_state`", + "sunrise_offset": "`sunrise_offset`", + "sunrise_time": "`sunrise_time`", + "sunset_offset": "`sunset_offset`", + "sunset_time": "`sunset_time`", + "transition": "`transition`" } } },