Skip to content

Add effects to iGlo Lights#12365

Merged
balloob merged 2 commits intohome-assistant:devfrom
jesserockz:iglo-effects
Feb 16, 2018
Merged

Add effects to iGlo Lights#12365
balloob merged 2 commits intohome-assistant:devfrom
jesserockz:iglo-effects

Conversation

@jesserockz
Copy link
Copy Markdown
Member

Description:

Add effects to iGlo lights and also always fetch state variables from library (local object only)

Checklist:

  • The code change is tested and works locally.

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

Simplify state variables to library
Comment thread homeassistant/components/light/iglo.py Outdated
"""Flag supported features."""
return SUPPORT_BRIGHTNESS | SUPPORT_COLOR_TEMP | SUPPORT_RGB_COLOR
return (SUPPORT_BRIGHTNESS | SUPPORT_COLOR_TEMP |
SUPPORT_RGB_COLOR | SUPPORT_EFFECT)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continuation line under-indented for visual indent

Comment thread homeassistant/components/light/iglo.py Outdated
def color_temp(self):
"""Return the color temperature."""
return color_util.color_temperature_kelvin_to_mired(self._color_temp)
return color_util.color_temperature_kelvin_to_mired(self._lamp.state['white'])
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (86 > 79 characters)

@balloob balloob merged commit 8d48272 into home-assistant:dev Feb 16, 2018
@balloob balloob mentioned this pull request Feb 22, 2018
@home-assistant home-assistant locked and limited conversation to collaborators May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants