mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 00:07:10 +00:00
Enable Ruff B014 (#88377)
This commit is contained in:
parent
83e5bf7ae8
commit
1caacab8dd
@ -66,7 +66,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
entry.data[CONF_PROJECT],
|
entry.data[CONF_PROJECT],
|
||||||
BUILDS_QUERY,
|
BUILDS_QUERY,
|
||||||
)
|
)
|
||||||
except (aiohttp.ClientError, aiohttp.ClientError) as exception:
|
except aiohttp.ClientError as exception:
|
||||||
raise UpdateFailed from exception
|
raise UpdateFailed from exception
|
||||||
|
|
||||||
coordinator = DataUpdateCoordinator(
|
coordinator = DataUpdateCoordinator(
|
||||||
|
@ -241,6 +241,7 @@ target-version = "py310"
|
|||||||
|
|
||||||
select = [
|
select = [
|
||||||
"B007", # Loop control variable {name} not used within loop body
|
"B007", # Loop control variable {name} not used within loop body
|
||||||
|
"B014", # Exception handler with duplicate exception
|
||||||
"C", # complexity
|
"C", # complexity
|
||||||
"D", # docstrings
|
"D", # docstrings
|
||||||
"E", # pycodestyle
|
"E", # pycodestyle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user