Import websocket_api (part 3) (#63907)

This commit is contained in:
Erik Montnemery 2022-01-11 17:26:37 +01:00 committed by GitHub
parent 3b7448bb1c
commit 6eb0447566
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 32 additions and 18 deletions

View file

@ -207,7 +207,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
DOMAIN, "mark_read", mark_read_service, SCHEMA_SERVICE_NOTIFICATION
)
hass.components.websocket_api.async_register_command(websocket_get_notifications)
websocket_api.async_register_command(hass, websocket_get_notifications)
return True