Remove unnecessary patch from toon tests (#146691)

This commit is contained in:
Marc Mueller 2025-06-13 12:53:33 +02:00 committed by GitHub
parent 7c575d0316
commit 704118b3d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,13 +27,12 @@ async def setup_component(hass: HomeAssistant) -> None:
{"external_url": "https://example.com"}, {"external_url": "https://example.com"},
) )
with patch("os.path.isfile", return_value=False): assert await async_setup_component(
assert await async_setup_component( hass,
hass, DOMAIN,
DOMAIN, {DOMAIN: {CONF_CLIENT_ID: "client", CONF_CLIENT_SECRET: "secret"}},
{DOMAIN: {CONF_CLIENT_ID: "client", CONF_CLIENT_SECRET: "secret"}}, )
) await hass.async_block_till_done()
await hass.async_block_till_done()
async def test_abort_if_no_configuration(hass: HomeAssistant) -> None: async def test_abort_if_no_configuration(hass: HomeAssistant) -> None: