Use async_register in streamlabswater (#107060)

This commit is contained in:
Joost Lekkerkerker 2024-01-04 09:11:44 +01:00 committed by Franck Nijhof
parent 427077a4c9
commit e2acc70128
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

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
)