From 7033695a34cbcc0e00c0d14fd496c3792821eb13 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 4 Apr 2019 21:29:51 -0400 Subject: [PATCH] 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'