mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +00:00
Use .get for Fully Kiosk SSL settings in coordinator (#104801)
This commit is contained in:
parent
fa7a74c611
commit
aa4382e091
@ -19,13 +19,14 @@ class FullyKioskDataUpdateCoordinator(DataUpdateCoordinator):
|
|||||||
|
|
||||||
def __init__(self, hass: HomeAssistant, entry: ConfigEntry) -> None:
|
def __init__(self, hass: HomeAssistant, entry: ConfigEntry) -> None:
|
||||||
"""Initialize."""
|
"""Initialize."""
|
||||||
|
self.use_ssl = entry.data.get(CONF_SSL, False)
|
||||||
self.fully = FullyKiosk(
|
self.fully = FullyKiosk(
|
||||||
async_get_clientsession(hass),
|
async_get_clientsession(hass),
|
||||||
entry.data[CONF_HOST],
|
entry.data[CONF_HOST],
|
||||||
DEFAULT_PORT,
|
DEFAULT_PORT,
|
||||||
entry.data[CONF_PASSWORD],
|
entry.data[CONF_PASSWORD],
|
||||||
use_ssl=entry.data[CONF_SSL],
|
use_ssl=self.use_ssl,
|
||||||
verify_ssl=entry.data[CONF_VERIFY_SSL],
|
verify_ssl=entry.data.get(CONF_VERIFY_SSL, False),
|
||||||
)
|
)
|
||||||
super().__init__(
|
super().__init__(
|
||||||
hass,
|
hass,
|
||||||
@ -33,7 +34,6 @@ class FullyKioskDataUpdateCoordinator(DataUpdateCoordinator):
|
|||||||
name=entry.data[CONF_HOST],
|
name=entry.data[CONF_HOST],
|
||||||
update_interval=UPDATE_INTERVAL,
|
update_interval=UPDATE_INTERVAL,
|
||||||
)
|
)
|
||||||
self.use_ssl = entry.data[CONF_SSL]
|
|
||||||
|
|
||||||
async def _async_update_data(self) -> dict[str, Any]:
|
async def _async_update_data(self) -> dict[str, Any]:
|
||||||
"""Update data via library."""
|
"""Update data via library."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user