Remove deprecated `hass.components` from cloud client test (#113820)

pull/113835/head^2
Jan-Philipp Benecke 2024-03-19 21:33:11 +01:00 committed by GitHub
parent f96bb6754b
commit ff03c9db19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ from aiohttp import web
from hass_nabucasa.client import RemoteActivationNotAllowed
import pytest
from homeassistant.components import webhook
from homeassistant.components.cloud import DOMAIN
from homeassistant.components.cloud.client import (
VALID_REPAIR_TRANSLATION_KEYS,
@ -206,7 +207,7 @@ async def test_webhook_msg(
received.append(request)
return web.json_response({"from": "handler"})
hass.components.webhook.async_register("test", "Test", "mock-webhook-id", handler)
webhook.async_register(hass, "test", "Test", "mock-webhook-id", handler)
response = await cloud.client.async_webhook_message(
{