Add option to disable HTTPS verification in Luci component (#27946)
* Add option to disable HTTPS verification in Luci component * Update code owners * Update code ownerspull/27973/head
parent
ac5ce4136e
commit
22b29a8005
|
@ -171,7 +171,7 @@ homeassistant/components/liveboxplaytv/* @pschmitt
|
|||
homeassistant/components/logger/* @home-assistant/core
|
||||
homeassistant/components/logi_circle/* @evanjd
|
||||
homeassistant/components/lovelace/* @home-assistant/frontend
|
||||
homeassistant/components/luci/* @fbradyirl
|
||||
homeassistant/components/luci/* @fbradyirl @mzdrale
|
||||
homeassistant/components/luftdaten/* @fabaff
|
||||
homeassistant/components/mastodon/* @fabaff
|
||||
homeassistant/components/matrix/* @tinloaf
|
||||
|
|
|
@ -8,12 +8,19 @@ from homeassistant.components.device_tracker import (
|
|||
PLATFORM_SCHEMA,
|
||||
DeviceScanner,
|
||||
)
|
||||
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_SSL, CONF_USERNAME
|
||||
from homeassistant.const import (
|
||||
CONF_HOST,
|
||||
CONF_PASSWORD,
|
||||
CONF_SSL,
|
||||
CONF_USERNAME,
|
||||
CONF_VERIFY_SSL,
|
||||
)
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
DEFAULT_SSL = False
|
||||
DEFAULT_VERIFY_SSL = True
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
{
|
||||
|
@ -21,6 +28,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||
vol.Required(CONF_USERNAME): cv.string,
|
||||
vol.Required(CONF_PASSWORD): cv.string,
|
||||
vol.Optional(CONF_SSL, default=DEFAULT_SSL): cv.boolean,
|
||||
vol.Optional(CONF_VERIFY_SSL, default=DEFAULT_VERIFY_SSL): cv.boolean,
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -44,6 +52,7 @@ class LuciDeviceScanner(DeviceScanner):
|
|||
config[CONF_USERNAME],
|
||||
config[CONF_PASSWORD],
|
||||
config[CONF_SSL],
|
||||
config[CONF_VERIFY_SSL],
|
||||
)
|
||||
|
||||
self.last_results = {}
|
||||
|
|
|
@ -3,8 +3,11 @@
|
|||
"name": "Luci",
|
||||
"documentation": "https://www.home-assistant.io/integrations/luci",
|
||||
"requirements": [
|
||||
"openwrt-luci-rpc==1.1.1"
|
||||
"openwrt-luci-rpc==1.1.2"
|
||||
],
|
||||
"dependencies": [],
|
||||
"codeowners": ["@fbradyirl"]
|
||||
"codeowners": [
|
||||
"@fbradyirl",
|
||||
"@mzdrale"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -917,7 +917,7 @@ opensensemap-api==0.1.5
|
|||
openwebifpy==3.1.1
|
||||
|
||||
# homeassistant.components.luci
|
||||
openwrt-luci-rpc==1.1.1
|
||||
openwrt-luci-rpc==1.1.2
|
||||
|
||||
# homeassistant.components.oru
|
||||
oru==0.1.9
|
||||
|
|
Loading…
Reference in New Issue