Use async_register in streamlabswater (#107060)

This commit is contained in:
Joost Lekkerkerker 2024-01-04 09:11:44 +01:00 committed by GitHub
parent 53717523e5
commit 85a1d8b34c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
)
client.update_location(location_id, away_mode)
hass.services.register(
hass.services.async_register(
DOMAIN, SERVICE_SET_AWAY_MODE, set_away_mode, schema=SET_AWAY_MODE_SCHEMA
)