Skip to content

Commit

Permalink
Fix an issue around color temp (#107)
Browse files Browse the repository at this point in the history
* Fix an issue where the color-mode white incorrectly assumed
   temperature

Sem-Ver: bugfix
  • Loading branch information
Expl0dingBanana authored Sep 29, 2024
1 parent ae2fe56 commit 9a7ebd9
Show file tree
Hide file tree
Showing 4 changed files with 616 additions and 7 deletions.
5 changes: 0 additions & 5 deletions custom_components/hubspace/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,6 @@ def process_functions(self, functions: list[dict]) -> None:
elif function["functionClass"] == "color-rgb":
self._color_modes.add(ColorMode.RGB)
_LOGGER.debug("Adding a new feature - rgb")
elif function["functionClass"] == "color-mode":
for value in function["values"]:
if value["name"] == "white":
# @TODO - Is white the same thing as color temp?
self._color_modes.add(ColorMode.COLOR_TEMP)
elif function["functionClass"] == "color-sequence":
self._instance_attrs.pop(function["functionClass"], None)
self._effects[function["functionInstance"]] = sorted(
Expand Down
5 changes: 3 additions & 2 deletions custom_components/hubspace/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"domain": "hubspace",
"name": "hubspace",
"codeowners": ["@jdeath"],
"codeowners": ["@jdeath", "@Expl0dingBanana"],
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/jdeath/Hubspace-Homeassistant/blob/main/README.md",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/jdeath/Hubspace-Homeassistant/issues",
"requirements": ["hubspace-async==0.1.0", "aiofiles==24.1.0"],
"loggers": ["hubspace_async"],
"requirements": ["hubspace-async==0.4.1", "aiofiles==24.1.0"],
"version": "1.0"
}
Loading

0 comments on commit 9a7ebd9

Please sign in to comment.