From 44eee25b8418d6acb67a82ddd0ef2382e1bfd551 Mon Sep 17 00:00:00 2001 From: Clayton Nummer Date: Thu, 4 Apr 2019 21:09:25 -0400 Subject: [PATCH 1/9] Update README.md --- README.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 617c8d41..95031471 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,52 @@ -# hass-circadian_lighting -Circadian Lighting custom component for Home Assistant +# Circadian Lighting [[Home Assistant](https://www.home-assistant.io/) Component] +## Stay healthier and sleep better by syncing your lights with natural daylight to maintain your circadian rhythm! + +![Circadian Light Rhythm|690x287](https://community-home-assistant-assets.s3.dualstack.us-west-2.amazonaws.com/original/3X/5/f/5fe7a780e9f8905fea4d1cbb66cdbe35858a6e36.jpg) + +Circadian Lighting slowly synchronizes your color changing lights with the regular naturally occuring color temperature of the sky throughout the day. This gives your environment a more natural feel, with cooler hues during the midday and warmer tints near twilight and dawn. + +In addition, Circadian Lighting can set your lights to a nice cool white at 1% in “Sleep” mode, which is far brighter than starlight but won’t reset your circadian rhythm or break down too much rhodopsin in your eyes. + + +
Expand for articles explaining the benefits of maintaining a natural Circadian rhythm +* [Circadian Rhythms - National Institute of General Medical Sciences](https://www.nigms.nih.gov/Education/Pages/Factsheet_CircadianRhythms.aspx) +* [Circadian Rhythms Linked to Aging and Well-Being | Psychology Today](https://www.psychologytoday.com/us/blog/the-athletes-way/201306/circadian-rhythms-linked-aging-and-well-being) +* [Maintaining a daily rhythm is important for mental health, study suggests - CNN](https://www.cnn.com/2018/05/15/health/circadian-rhythm-mood-disorder-study/index.html) +* [How Nobel Winning Circadian Rhythm Research Benefits Pregnancy](https://www.healthypregnancy.com/how-nobel-prize-winning-circadian-rhythms-research-benefits-a-healthy-pregnancy/) +* [Body Clock & Sleep - National Sleep Foundation](https://sleepfoundation.org/sleep-topics/sleep-drive-and-your-body-clock) +
+ +### Visit the [Wiki](https://github.com/claytonjn/hass-circadian_lighting/wiki) for more information. +
+ +## Basic Installation/Configuration Instructions: + +#### Files - ALL THREE REQUIRED! +* [config/custom_components/circadian_lighting/\_\_init__.py](https://raw.githubusercontent.com/claytonjn/hass-circadian_lighting/master/custom_components/circadian_lighting/__init__.py) +* [config/custom_components/circadian_lighting/sensor.py](https://raw.githubusercontent.com/claytonjn/hass-circadian_lighting/master/custom_components/circadian_lighting/sensor.py) +* [config/custom_components/circadian_lighting/switch.py](https://raw.githubusercontent.com/claytonjn/hass-circadian_lighting/master/custom_components/circadian_lighting/switch.py) + +#### Component Configuration: +```yaml +# Example configuration.yaml entry +circadian_lighting: +``` +[_Advanced Configuration_](https://github.com/claytonjn/hass-circadian_lighting/wiki/Advanced-Configuration#component-configuration-variables) + +#### Switch Configuration: +```yaml +# Example configuration.yaml entry +switch: + - platform: circadian_lighting + lights_ct: + - light.desk + - light.lamp +``` +Switch configuration variables: +* **name** (_Optional_): The name to use when displaying this switch. +* **lights_ct** (_Optional_): array: List of light entities which should be set in mireds. +* **lights_rgb** (_Optional_): array: List of light entities which should be set in RGB. +* **lights_xy** (_Optional_): array: List of light entities which should be set in XY. +* **lights_brightness** (_Optional_): array: List of light entities which should only have brightness adjusted. + +[_Advanced Configuration_](https://github.com/claytonjn/hass-circadian_lighting/wiki/Advanced-Configuration#switch-configuration-variables) From daff26629012bf61336b3a96a7bbdc09db52999a Mon Sep 17 00:00:00 2001 From: Clayton Nummer Date: Thu, 4 Apr 2019 21:11:32 -0400 Subject: [PATCH 2/9] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 95031471..79a9b672 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,13 @@ In addition, Circadian Lighting can set your lights to a nice cool white at 1% i
Expand for articles explaining the benefits of maintaining a natural Circadian rhythm + * [Circadian Rhythms - National Institute of General Medical Sciences](https://www.nigms.nih.gov/Education/Pages/Factsheet_CircadianRhythms.aspx) * [Circadian Rhythms Linked to Aging and Well-Being | Psychology Today](https://www.psychologytoday.com/us/blog/the-athletes-way/201306/circadian-rhythms-linked-aging-and-well-being) * [Maintaining a daily rhythm is important for mental health, study suggests - CNN](https://www.cnn.com/2018/05/15/health/circadian-rhythm-mood-disorder-study/index.html) * [How Nobel Winning Circadian Rhythm Research Benefits Pregnancy](https://www.healthypregnancy.com/how-nobel-prize-winning-circadian-rhythms-research-benefits-a-healthy-pregnancy/) * [Body Clock & Sleep - National Sleep Foundation](https://sleepfoundation.org/sleep-topics/sleep-drive-and-your-body-clock) +
### Visit the [Wiki](https://github.com/claytonjn/hass-circadian_lighting/wiki) for more information. From 4ce6bb9f4a72a900d2a847e2f5c61fdc10fc0d63 Mon Sep 17 00:00:00 2001 From: Clayton Nummer Date: Thu, 4 Apr 2019 21:16:06 -0400 Subject: [PATCH 3/9] Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 79a9b672..57ea2739 100644 --- a/README.md +++ b/README.md @@ -52,3 +52,17 @@ Switch configuration variables: * **lights_brightness** (_Optional_): array: List of light entities which should only have brightness adjusted. [_Advanced Configuration_](https://github.com/claytonjn/hass-circadian_lighting/wiki/Advanced-Configuration#switch-configuration-variables) + +
+ +### Graphs! +These graphs were generated using the values calculated by the Circadian Lighting sensor/switch(es). + +##### Sun Position: +![cl_percent|690x131](https://community-home-assistant-assets.s3.dualstack.us-west-2.amazonaws.com/original/3X/6/5/657ff98beb65a94598edeb4bdfd939095db1a22c.PNG) + +##### Color Temperature: +![cl_colortemp|690x129](https://community-home-assistant-assets.s3.dualstack.us-west-2.amazonaws.com/original/3X/5/9/59e84263cbecd8e428cb08777a0413672c48dfcd.PNG) + +##### Brightness: +![cl_brightness|690x130](https://community-home-assistant-assets.s3.dualstack.us-west-2.amazonaws.com/original/3X/5/8/58ebd994b62a8b1abfb3497a5288d923ff4e2330.PNG) From 7033695a34cbcc0e00c0d14fd496c3792821eb13 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 4 Apr 2019 21:29:51 -0400 Subject: [PATCH 4/9] Get rid of const.py so there are fewer files for users to install --- custom_components/circadian_lighting/__init__.py | 2 +- custom_components/circadian_lighting/const.py | 3 --- custom_components/circadian_lighting/sensor.py | 2 -- custom_components/circadian_lighting/switch.py | 2 -- 4 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 custom_components/circadian_lighting/const.py diff --git a/custom_components/circadian_lighting/__init__.py b/custom_components/circadian_lighting/__init__.py index c31e138b..f347d428 100644 --- a/custom_components/circadian_lighting/__init__.py +++ b/custom_components/circadian_lighting/__init__.py @@ -49,7 +49,7 @@ from homeassistant.util.dt import utcnow as dt_utcnow, as_local import astral from datetime import datetime, timedelta -from .const import VERSION +VERSION = '1.0.0' _LOGGER = logging.getLogger(__name__) diff --git a/custom_components/circadian_lighting/const.py b/custom_components/circadian_lighting/const.py deleted file mode 100644 index 88138c0f..00000000 --- a/custom_components/circadian_lighting/const.py +++ /dev/null @@ -1,3 +0,0 @@ -# coding: utf-8 -"""Constants used by Circadian Lighting components.""" -VERSION = '1.0.0' \ No newline at end of file diff --git a/custom_components/circadian_lighting/sensor.py b/custom_components/circadian_lighting/sensor.py index a3d35045..3395142b 100644 --- a/custom_components/circadian_lighting/sensor.py +++ b/custom_components/circadian_lighting/sensor.py @@ -13,8 +13,6 @@ from homeassistant.helpers.entity import Entity import datetime -from .const import VERSION - _LOGGER = logging.getLogger(__name__) ICON = 'mdi:theme-light-dark' diff --git a/custom_components/circadian_lighting/switch.py b/custom_components/circadian_lighting/switch.py index 4420eba8..380e03fe 100644 --- a/custom_components/circadian_lighting/switch.py +++ b/custom_components/circadian_lighting/switch.py @@ -26,8 +26,6 @@ from homeassistant.util.color import ( color_RGB_to_xy, color_temperature_kelvin_to_mired, color_temperature_to_rgb, color_xy_to_hs) -from .const import VERSION - _LOGGER = logging.getLogger(__name__) ICON = 'mdi:theme-light-dark' From 2d135ca119407869ca95059d1308764b990b660b Mon Sep 17 00:00:00 2001 From: Clayton Nummer Date: Thu, 4 Apr 2019 22:01:15 -0400 Subject: [PATCH 5/9] Improve getting astral times Include time_zone and elevation to get more accurate times. Always pass date into get_sunrise_sunset (otherwise it was returning inconsistent results). Add some debug logging. --- .../circadian_lighting/__init__.py | 42 ++++++++++++------- custom_updater.json | 4 +- 2 files changed, 29 insertions(+), 17 deletions(-) diff --git a/custom_components/circadian_lighting/__init__.py b/custom_components/circadian_lighting/__init__.py index f347d428..72f14f37 100644 --- a/custom_components/circadian_lighting/__init__.py +++ b/custom_components/circadian_lighting/__init__.py @@ -35,7 +35,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.components.light import ( VALID_TRANSITION, ATTR_TRANSITION) from homeassistant.const import ( - CONF_LATITUDE, CONF_LONGITUDE, + CONF_LATITUDE, CONF_LONGITUDE, CONF_TIME_ZONE, CONF_ELEVATION, SUN_EVENT_SUNRISE, SUN_EVENT_SUNSET) from homeassistant.util import Throttle from homeassistant.helpers.discovery import load_platform @@ -46,10 +46,9 @@ from homeassistant.util.color import ( color_xy_to_hs) from homeassistant.util.dt import utcnow as dt_utcnow, as_local -import astral from datetime import datetime, timedelta -VERSION = '1.0.0' +VERSION = '1.0.1' _LOGGER = logging.getLogger(__name__) @@ -81,6 +80,8 @@ CONFIG_SCHEMA = vol.Schema({ vol.Optional(CONF_SUNSET_TIME): cv.time, vol.Optional(CONF_LATITUDE): cv.latitude, vol.Optional(CONF_LONGITUDE): cv.longitude, + vol.Optional(CONF_TIME_ZONE): cv.time_zone, + vol.Optional(CONF_ELEVATION): float, vol.Optional(CONF_INTERVAL, default=DEFAULT_INTERVAL): cv.positive_int, vol.Optional(ATTR_TRANSITION, default=DEFAULT_INTERVAL): VALID_TRANSITION }), @@ -96,15 +97,10 @@ def setup(hass, config): sunrise_time = conf.get(CONF_SUNRISE_TIME) sunset_time = conf.get(CONF_SUNSET_TIME) - if conf.get(CONF_LATITUDE) is None: - latitude = hass.config.latitude - else: - latitude = conf.get(CONF_LATITUDE) - - if conf.get(CONF_LONGITUDE) is None: - longitude = hass.config.longitude - else: - longitude = conf.get(CONF_LONGITUDE) + latitude = conf.get(CONF_LATITUDE, hass.config.latitude or None) + longitude = conf.get(CONF_LONGITUDE, hass.config.longitude or None) + time_zone = conf.get(CONF_TIME_ZONE, hass.config.time_zone or None) + elevation = conf.get(CONF_ELEVATION, hass.config.elevation or None) load_platform(hass, 'sensor', DOMAIN, {}, config) @@ -113,7 +109,7 @@ def setup(hass, config): cl = CircadianLighting(hass, min_colortemp, max_colortemp, sunrise_offset, sunset_offset, sunrise_time, sunset_time, - latitude, longitude, + latitude, longitude, time_zone, elevation, interval, transition) hass.data[DATA_CIRCADIAN_LIGHTING] = cl @@ -125,7 +121,7 @@ class CircadianLighting(object): def __init__(self, hass, min_colortemp, max_colortemp, sunrise_offset, sunset_offset, sunrise_time, sunset_time, - latitude, longitude, + latitude, longitude, time_zone, elevation, interval, transition): self.hass = hass self.data = {} @@ -137,6 +133,8 @@ class CircadianLighting(object): self.data['sunset_time'] = sunset_time self.data['latitude'] = latitude self.data['longitude'] = longitude + self.data['time_zone'] = time_zone + self.data['elevation'] = elevation self.data['interval'] = interval self.data['transition'] = transition self.data['percent'] = self.calc_percent() @@ -166,9 +164,15 @@ class CircadianLighting(object): solar_noon = sunrise + (sunset - sunrise)/2 solar_midnight = sunset + ((sunrise + timedelta(days=1)) - sunset)/2 else: + import astral location = astral.Location() + location.name = 'name' + location.region = 'region' location.latitude = self.data['latitude'] location.longitude = self.data['longitude'] + location.timezone = self.data['time_zone'] + location.elevation = self.data['elevation'] + _LOGGER.debug("Astral location: " + str(location)) if self.data['sunrise_time'] is not None: if date is None: utcdate = dt_utcnow() @@ -199,7 +203,7 @@ class CircadianLighting(object): def calc_percent(self): utcnow = dt_utcnow() now = as_local(utcnow) - today_sun_times = self.get_sunrise_sunset() + today_sun_times = self.get_sunrise_sunset(now) now_seconds = now.timestamp() today_sunrise_seconds = today_sun_times[SUN_EVENT_SUNRISE].timestamp() @@ -207,12 +211,16 @@ class CircadianLighting(object): today_solar_noon_seconds = today_sun_times['solar_noon'].timestamp() today_solar_midnight_seconds = today_sun_times['solar_midnight'].timestamp() + _LOGGER.debug("now: " + str(now) + "\n\n today_sun_times: " + str(today_sun_times)) + if now < today_sun_times[SUN_EVENT_SUNRISE]: yesterday_sun_times = self.get_sunrise_sunset(now - timedelta(days=1)) yesterday_sunrise_seconds = yesterday_sun_times[SUN_EVENT_SUNRISE].timestamp() yesterday_sunset_seconds = yesterday_sun_times[SUN_EVENT_SUNSET].timestamp() yesterday_solar_midnight_seconds = yesterday_sun_times['solar_midnight'].timestamp() + _LOGGER.debug("yesterday_sun_times: " + str(yesterday_sun_times)) + x1 = yesterday_sunset_seconds y1 = 0 @@ -249,6 +257,8 @@ class CircadianLighting(object): x3 = today_sunset_seconds y3 = 0 + _LOGGER.debug("x1: " + str(x1) + "\n\n y1: " + str(y1) + "\n\n x2: " + str(x2) + "\n\n y2: " + str(y2)) + # Generate color temperature parabola from points a1 = -x1**2+x2**2 b1 = -x1+x2 @@ -264,6 +274,8 @@ class CircadianLighting(object): c = y1-a*x1**2-b*x1 percentage = a*now_seconds**2+b*now_seconds+c + _LOGGER.debug("percentage: " + str(percentage)) + return percentage def calc_colortemp(self): diff --git a/custom_updater.json b/custom_updater.json index 2981e5bf..f6469ee7 100644 --- a/custom_updater.json +++ b/custom_updater.json @@ -1,7 +1,7 @@ { "circadian_lighting": { - "updated_at": "2019-04-03", - "version": "1.0.0", + "updated_at": "2019-04-04", + "version": "1.0.1", "local_location": "/custom_components/circadian_lighting/__init__.py", "remote_location": "https://raw.githubusercontent.com/claytonjn/hass-circadian_lighting/master/custom_components/circadian_lighting/__init__.py", "visit_repo": "https://github.com/claytonjn/hass-circadian_lighting", From 16377d26e9e0744075af78fa93077945f4e7170e Mon Sep 17 00:00:00 2001 From: Clayton Nummer Date: Thu, 4 Apr 2019 22:20:54 -0400 Subject: [PATCH 6/9] Remove const.py from custom_updater.json resources --- custom_updater.json | 1 - 1 file changed, 1 deletion(-) diff --git a/custom_updater.json b/custom_updater.json index f6469ee7..c2928519 100644 --- a/custom_updater.json +++ b/custom_updater.json @@ -7,7 +7,6 @@ "visit_repo": "https://github.com/claytonjn/hass-circadian_lighting", "changelog": "https://github.com/claytonjn/hass-circadian_lighting/releases", "resources": [ - "https://raw.githubusercontent.com/claytonjn/hass-circadian_lighting/master/custom_components/circadian_lighting/const.py", "https://raw.githubusercontent.com/claytonjn/hass-circadian_lighting/master/custom_components/circadian_lighting/sensor.py", "https://raw.githubusercontent.com/claytonjn/hass-circadian_lighting/master/custom_components/circadian_lighting/switch.py" ] From d70e7d0c914913e8b71d51d9ab78eea0ab43cb58 Mon Sep 17 00:00:00 2001 From: Clayton Nummer Date: Thu, 4 Apr 2019 22:57:17 -0400 Subject: [PATCH 7/9] Remove time_zone configuration variable astral seems to only be compatible with with deprecated time zone strings, and because times returned are timezone aware the calculations still work properly. --- custom_components/circadian_lighting/__init__.py | 12 ++++-------- custom_updater.json | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/custom_components/circadian_lighting/__init__.py b/custom_components/circadian_lighting/__init__.py index 72f14f37..c04026fb 100644 --- a/custom_components/circadian_lighting/__init__.py +++ b/custom_components/circadian_lighting/__init__.py @@ -35,7 +35,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.components.light import ( VALID_TRANSITION, ATTR_TRANSITION) from homeassistant.const import ( - CONF_LATITUDE, CONF_LONGITUDE, CONF_TIME_ZONE, CONF_ELEVATION, + CONF_LATITUDE, CONF_LONGITUDE, CONF_ELEVATION, SUN_EVENT_SUNRISE, SUN_EVENT_SUNSET) from homeassistant.util import Throttle from homeassistant.helpers.discovery import load_platform @@ -48,7 +48,7 @@ from homeassistant.util.dt import utcnow as dt_utcnow, as_local from datetime import datetime, timedelta -VERSION = '1.0.1' +VERSION = '1.0.2' _LOGGER = logging.getLogger(__name__) @@ -80,7 +80,6 @@ CONFIG_SCHEMA = vol.Schema({ vol.Optional(CONF_SUNSET_TIME): cv.time, vol.Optional(CONF_LATITUDE): cv.latitude, vol.Optional(CONF_LONGITUDE): cv.longitude, - vol.Optional(CONF_TIME_ZONE): cv.time_zone, vol.Optional(CONF_ELEVATION): float, vol.Optional(CONF_INTERVAL, default=DEFAULT_INTERVAL): cv.positive_int, vol.Optional(ATTR_TRANSITION, default=DEFAULT_INTERVAL): VALID_TRANSITION @@ -99,7 +98,6 @@ def setup(hass, config): latitude = conf.get(CONF_LATITUDE, hass.config.latitude or None) longitude = conf.get(CONF_LONGITUDE, hass.config.longitude or None) - time_zone = conf.get(CONF_TIME_ZONE, hass.config.time_zone or None) elevation = conf.get(CONF_ELEVATION, hass.config.elevation or None) load_platform(hass, 'sensor', DOMAIN, {}, config) @@ -109,7 +107,7 @@ def setup(hass, config): cl = CircadianLighting(hass, min_colortemp, max_colortemp, sunrise_offset, sunset_offset, sunrise_time, sunset_time, - latitude, longitude, time_zone, elevation, + latitude, longitude, elevation, interval, transition) hass.data[DATA_CIRCADIAN_LIGHTING] = cl @@ -121,7 +119,7 @@ class CircadianLighting(object): def __init__(self, hass, min_colortemp, max_colortemp, sunrise_offset, sunset_offset, sunrise_time, sunset_time, - latitude, longitude, time_zone, elevation, + latitude, longitude, elevation, interval, transition): self.hass = hass self.data = {} @@ -133,7 +131,6 @@ class CircadianLighting(object): self.data['sunset_time'] = sunset_time self.data['latitude'] = latitude self.data['longitude'] = longitude - self.data['time_zone'] = time_zone self.data['elevation'] = elevation self.data['interval'] = interval self.data['transition'] = transition @@ -170,7 +167,6 @@ class CircadianLighting(object): location.region = 'region' location.latitude = self.data['latitude'] location.longitude = self.data['longitude'] - location.timezone = self.data['time_zone'] location.elevation = self.data['elevation'] _LOGGER.debug("Astral location: " + str(location)) if self.data['sunrise_time'] is not None: diff --git a/custom_updater.json b/custom_updater.json index c2928519..6647aa64 100644 --- a/custom_updater.json +++ b/custom_updater.json @@ -1,7 +1,7 @@ { "circadian_lighting": { "updated_at": "2019-04-04", - "version": "1.0.1", + "version": "1.0.2", "local_location": "/custom_components/circadian_lighting/__init__.py", "remote_location": "https://raw.githubusercontent.com/claytonjn/hass-circadian_lighting/master/custom_components/circadian_lighting/__init__.py", "visit_repo": "https://github.com/claytonjn/hass-circadian_lighting", From 6c37e03222ee5bdd7c4e7903b033beb45235ad59 Mon Sep 17 00:00:00 2001 From: Clayton Nummer Date: Fri, 5 Apr 2019 13:03:49 -0400 Subject: [PATCH 8/9] conf.get seems to handle missing hass.config variables - remove or None Should fix #8 --- custom_components/circadian_lighting/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/circadian_lighting/__init__.py b/custom_components/circadian_lighting/__init__.py index c04026fb..083d1886 100644 --- a/custom_components/circadian_lighting/__init__.py +++ b/custom_components/circadian_lighting/__init__.py @@ -96,9 +96,9 @@ def setup(hass, config): sunrise_time = conf.get(CONF_SUNRISE_TIME) sunset_time = conf.get(CONF_SUNSET_TIME) - latitude = conf.get(CONF_LATITUDE, hass.config.latitude or None) - longitude = conf.get(CONF_LONGITUDE, hass.config.longitude or None) - elevation = conf.get(CONF_ELEVATION, hass.config.elevation or None) + latitude = conf.get(CONF_LATITUDE, hass.config.latitude) + longitude = conf.get(CONF_LONGITUDE, hass.config.longitude) + elevation = conf.get(CONF_ELEVATION, hass.config.elevation) load_platform(hass, 'sensor', DOMAIN, {}, config) From e66bea0695e3020a7f268b53a6766638349df5bb Mon Sep 17 00:00:00 2001 From: Clayton Nummer Date: Fri, 5 Apr 2019 15:35:45 -0400 Subject: [PATCH 9/9] Increment version --- custom_components/circadian_lighting/__init__.py | 2 +- custom_updater.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/circadian_lighting/__init__.py b/custom_components/circadian_lighting/__init__.py index 083d1886..eef94f6a 100644 --- a/custom_components/circadian_lighting/__init__.py +++ b/custom_components/circadian_lighting/__init__.py @@ -48,7 +48,7 @@ from homeassistant.util.dt import utcnow as dt_utcnow, as_local from datetime import datetime, timedelta -VERSION = '1.0.2' +VERSION = '1.0.3' _LOGGER = logging.getLogger(__name__) diff --git a/custom_updater.json b/custom_updater.json index 6647aa64..e28e0f86 100644 --- a/custom_updater.json +++ b/custom_updater.json @@ -1,7 +1,7 @@ { "circadian_lighting": { - "updated_at": "2019-04-04", - "version": "1.0.2", + "updated_at": "2019-04-05", + "version": "1.0.3", "local_location": "/custom_components/circadian_lighting/__init__.py", "remote_location": "https://raw.githubusercontent.com/claytonjn/hass-circadian_lighting/master/custom_components/circadian_lighting/__init__.py", "visit_repo": "https://github.com/claytonjn/hass-circadian_lighting",