mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix issues after pylint update (#53205)
This commit is contained in:
parent
ac9e4cb2f2
commit
7711ac901c
@ -635,9 +635,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
await asyncio.wait(update_tasks)
|
||||
|
||||
for air_purifier_service, method in SERVICE_TO_METHOD.items():
|
||||
schema = method[air_purifier_service].get(
|
||||
"schema", AIRPURIFIER_SERVICE_SCHEMA
|
||||
)
|
||||
schema = method.get("schema", AIRPURIFIER_SERVICE_SCHEMA)
|
||||
hass.services.async_register(
|
||||
DOMAIN, air_purifier_service, async_service_handler, schema=schema
|
||||
)
|
||||
|
@ -251,7 +251,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
await asyncio.wait(update_tasks)
|
||||
|
||||
for plug_service, method in SERVICE_TO_METHOD.items():
|
||||
schema = method[plug_service].get("schema", SERVICE_SCHEMA)
|
||||
schema = method.get("schema", SERVICE_SCHEMA)
|
||||
hass.services.async_register(
|
||||
DOMAIN, plug_service, async_service_handler, schema=schema
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user