Skip to content

Commit

Permalink
Philips Hue: add prompt to update bridge/bulb (#20590)
Browse files Browse the repository at this point in the history
* Philips Hue: add prompt to update bridge/bulb

* bump aiohue to v1.9.0

* bump aiohue to v1.9.0

* bump aiohue to v1.9.0
  • Loading branch information
starkillerOG authored and balloob committed Jan 30, 2019
1 parent 7c9597f commit 349de19
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/hue/__init__.py
Expand Up @@ -19,7 +19,7 @@
# Loading the config flow file will register the flow
from .config_flow import configured_hosts

REQUIREMENTS = ['aiohue==1.8.0']
REQUIREMENTS = ['aiohue==1.9.0']

_LOGGER = logging.getLogger(__name__)

Expand Down
14 changes: 10 additions & 4 deletions homeassistant/components/hue/light.py
Expand Up @@ -230,12 +230,18 @@ def __init__(self, light, request_bridge_update, bridge, is_group=False):
self.gamut_typ = self.light.colorgamuttype
self.gamut = self.light.colorgamut
_LOGGER.debug("Color gamut of %s: %s", self.name, str(self.gamut))
if self.light.swupdatestate == "readytoinstall":
err = (
"Please check for software updates of the bridge "
"and/or the bulb: %s, in the Philips Hue App."
)
_LOGGER.warning(err, self.name)
if self.gamut:
if not color.check_valid_gamut(self.gamut):
err = "Please check for software updates of the bridge " \
"and/or bulb in the Philips Hue App, " \
"Color gamut of %s: %s, not valid, " \
"setting gamut to None."
err = (
"Color gamut of %s: %s, not valid, "
"setting gamut to None."
)
_LOGGER.warning(err, self.name, str(self.gamut))
self.gamut_typ = GAMUT_TYPE_UNAVAILABLE
self.gamut = None
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Expand Up @@ -115,7 +115,7 @@ aioharmony==0.1.5
aiohttp_cors==0.7.0

# homeassistant.components.hue
aiohue==1.8.0
aiohue==1.9.0

# homeassistant.components.sensor.iliad_italy
aioiliad==0.1.1
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Expand Up @@ -41,7 +41,7 @@ aioautomatic==0.6.5
aiohttp_cors==0.7.0

# homeassistant.components.hue
aiohue==1.8.0
aiohue==1.9.0

# homeassistant.components.unifi
aiounifi==4
Expand Down

0 comments on commit 349de19

Please sign in to comment.