Pass None instead of empty dict when registering entity services (#123878)
This commit is contained in:
parent
80f5683cd6
commit
ea7e88d000
29 changed files with 60 additions and 60 deletions
|
@ -110,7 +110,7 @@ async def async_setup_entry(
|
|||
)
|
||||
async_add_entities(entities)
|
||||
platform = entity_platform.async_get_current_platform()
|
||||
platform.async_register_entity_service(SERVICE_RESUME, {}, "resume")
|
||||
platform.async_register_entity_service(SERVICE_RESUME, None, "resume")
|
||||
platform.async_register_entity_service(
|
||||
SERVICE_START_WATERING, SCHEMA_START_WATERING, "start_watering"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue