Philips Hue: add prompt to update bridge/bulb (#20590)
* 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.0pull/20592/head
parent
7c9597f824
commit
349de19316
|
@ -19,7 +19,7 @@ from .bridge import HueBridge
|
|||
# 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__)
|
||||
|
||||
|
|
|
@ -230,12 +230,18 @@ class HueLight(Light):
|
|||
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue