Skip to content

Commit

Permalink
Merge pull request #202 from claytonjn/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
claytonjn authored Sep 2, 2022
2 parents afb41e0 + 6927a7b commit 8206d0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/circadian_lighting/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "circadian_lighting",
"name": "Circadian Lighting",
"version": "2.0.8",
"version": "2.1.2",
"documentation": "https://github.com/claytonjn/hass-circadian_lighting",
"issue_tracker": "https://github.com/claytonjn/hass-circadian_lighting/issues",
"dependencies": ["sensor","switch"],
Expand Down
3 changes: 0 additions & 3 deletions custom_components/circadian_lighting/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
ATTR_COLOR_TEMP,
ATTR_RGB_COLOR,
ATTR_TRANSITION,
ATTR_WHITE_VALUE,
ATTR_XY_COLOR,
)
from homeassistant.components.light import DOMAIN as LIGHT_DOMAIN
Expand Down Expand Up @@ -364,8 +363,6 @@ async def _adjust_lights(self, lights, transition):
service_data[ATTR_RGB_COLOR] = (int(r), int(g), int(b))
elif light_type == "xy":
service_data[ATTR_XY_COLOR] = self._calc_xy()
if service_data.get(ATTR_BRIGHTNESS, False):
service_data[ATTR_WHITE_VALUE] = service_data[ATTR_BRIGHTNESS]

_LOGGER.debug(
"Scheduling 'light.turn_on' with the following 'service_data': %s",
Expand Down

0 comments on commit 8206d0f

Please sign in to comment.