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.0
This commit is contained in:
parent
7c9597f824
commit
349de19316
4 changed files with 13 additions and 7 deletions
|
@ -19,7 +19,7 @@ from .bridge import HueBridge
|
||||||
# Loading the config flow file will register the flow
|
# Loading the config flow file will register the flow
|
||||||
from .config_flow import configured_hosts
|
from .config_flow import configured_hosts
|
||||||
|
|
||||||
REQUIREMENTS = ['aiohue==1.8.0']
|
REQUIREMENTS = ['aiohue==1.9.0']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -230,12 +230,18 @@ class HueLight(Light):
|
||||||
self.gamut_typ = self.light.colorgamuttype
|
self.gamut_typ = self.light.colorgamuttype
|
||||||
self.gamut = self.light.colorgamut
|
self.gamut = self.light.colorgamut
|
||||||
_LOGGER.debug("Color gamut of %s: %s", self.name, str(self.gamut))
|
_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 self.gamut:
|
||||||
if not color.check_valid_gamut(self.gamut):
|
if not color.check_valid_gamut(self.gamut):
|
||||||
err = "Please check for software updates of the bridge " \
|
err = (
|
||||||
"and/or bulb in the Philips Hue App, " \
|
"Color gamut of %s: %s, not valid, "
|
||||||
"Color gamut of %s: %s, not valid, " \
|
"setting gamut to None."
|
||||||
"setting gamut to None."
|
)
|
||||||
_LOGGER.warning(err, self.name, str(self.gamut))
|
_LOGGER.warning(err, self.name, str(self.gamut))
|
||||||
self.gamut_typ = GAMUT_TYPE_UNAVAILABLE
|
self.gamut_typ = GAMUT_TYPE_UNAVAILABLE
|
||||||
self.gamut = None
|
self.gamut = None
|
||||||
|
|
|
@ -115,7 +115,7 @@ aioharmony==0.1.5
|
||||||
aiohttp_cors==0.7.0
|
aiohttp_cors==0.7.0
|
||||||
|
|
||||||
# homeassistant.components.hue
|
# homeassistant.components.hue
|
||||||
aiohue==1.8.0
|
aiohue==1.9.0
|
||||||
|
|
||||||
# homeassistant.components.sensor.iliad_italy
|
# homeassistant.components.sensor.iliad_italy
|
||||||
aioiliad==0.1.1
|
aioiliad==0.1.1
|
||||||
|
|
|
@ -41,7 +41,7 @@ aioautomatic==0.6.5
|
||||||
aiohttp_cors==0.7.0
|
aiohttp_cors==0.7.0
|
||||||
|
|
||||||
# homeassistant.components.hue
|
# homeassistant.components.hue
|
||||||
aiohue==1.8.0
|
aiohue==1.9.0
|
||||||
|
|
||||||
# homeassistant.components.unifi
|
# homeassistant.components.unifi
|
||||||
aiounifi==4
|
aiounifi==4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue