Clean up access to config in various integrations v3 (#33842)

This commit is contained in:
springstan authored and GitHub committed 2020-04-09 09:26:06 +02:00
1 parent b46eee04e4
commit 21dfee831f
16 files changed
+52 -52

No files matched your search

@@ -112,7 +112,7 @@ async def async_setup_scanner(
hass: HomeAssistantType, config: dict, async_see, discovery_info=None
):
"""Set up the Bluetooth Scanner."""
device_id: int = config.get(CONF_DEVICE_ID)
device_id: int = config[CONF_DEVICE_ID]
interval = config.get(CONF_SCAN_INTERVAL, SCAN_INTERVAL)
request_rssi = config.get(CONF_REQUEST_RSSI, False)
update_bluetooth_lock = asyncio.Lock()