Check for known Hue vulnerability (#31494)
This commit is contained in:
1 parent
557f5763df
commit
481ea0aa5b
2 files changed
+48
-3
No files matched your search
@@ -6,6 +6,7 @@ from aiohue.util import normalize_bridge_id
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant import config_entries, core
|
||||
from homeassistant.components import persistent_notification
|
||||
from homeassistant.const import CONF_HOST
|
||||
from homeassistant.helpers import config_validation as cv, device_registry as dr
|
||||
|
||||
@@ -142,8 +143,20 @@ async def async_setup_entry(
|
||||
sw_version=config.swversion,
|
||||
)
|
||||
|
||||
if config.swupdate2_bridge_state == "readytoinstall":
|
||||
err = "Please check for software updates of the bridge in the Philips Hue App."
|
||||
if config.modelid == "BSB002" and config.swversion < "1935144040":
|
||||
persistent_notification.async_create(
|
||||
hass,
|
||||
"Your Hue hub has a known security vulnerability ([CVE-2020-6007](https://cve.circl.lu/cve/CVE-2020-6007)). Go to the Hue app and check for software updates.",
|
||||
"Signify Hue",
|
||||
"hue_hub_firmware",
|
||||
)
|
||||
|
||||
elif config.swupdate2_bridge_state == "readytoinstall":
|
||||
err = (
|
||||
"Please check for software updates of the bridge in the Philips Hue App.",
|
||||
"Signify Hue",
|
||||
"hue_hub_firmware",
|
||||
)
|
||||
_LOGGER.warning(err)
|
||||
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user