Skip to content

Commit

Permalink
- updated version of gehomesdk
Browse files Browse the repository at this point in the history
- updated the erd light to hopefully make dimming work
  • Loading branch information
simbaja committed Oct 13, 2021
1 parent 18143fe commit 3eb1dad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion custom_components/ge_home/entities/common/ge_erd_light.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class GeErdLight(GeErdEntity, LightEntity):

def __init__(self, api: ApplianceApi, erd_code: ErdCodeType, erd_override: str = None, color_mode = COLOR_MODE_BRIGHTNESS):
super().__init__(api, erd_code, erd_override)
self._attr_color_mode = color_mode
self._color_mode = color_mode

@property
def supported_features(self):
Expand All @@ -38,6 +38,11 @@ def supported_features(self):
def supported_color_modes(self):
"""Flag supported color modes."""
return COLOR_MODE_BRIGHTNESS

@property
def color_mode(self):
"""Return the color mode of the light."""
return self._color_mode

@property
def brightness(self):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ge_home/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "GE Home (SmartHQ)",
"config_flow": true,
"documentation": "https://github.com/simbaja/ha_gehome",
"requirements": ["gehomesdk==0.4.11","magicattr==0.1.5"],
"requirements": ["gehomesdk==0.4.12","magicattr==0.1.5"],
"codeowners": ["@simbaja"],
"version": "0.5.0"
}

0 comments on commit 3eb1dad

Please sign in to comment.