Pass None instead of empty dict when registering entity services (#123878)

This commit is contained in:
Erik Montnemery 2024-08-14 14:04:29 +02:00 committed by GitHub
parent 80f5683cd6
commit ea7e88d000
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 60 additions and 60 deletions

View file

@ -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"
)