Use async_register in streamlabswater (#107060)

This commit is contained in:
Joost Lekkerkerker
2024-01-05 13:00:14 +01:00
committed by Franck Nijhof
parent 427077a4c9
commit e2acc70128
@@ -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
)