mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Do not fail MQTT setup if lights configured via yaml can't be validated (#101649)
* Add light * Deduplicate code * Follow up comment
This commit is contained in:
@@ -253,9 +253,8 @@ async def test_fail_setup_if_no_command_topic(
|
||||
caplog: pytest.LogCaptureFixture,
|
||||
) -> None:
|
||||
"""Test if command fails with command topic."""
|
||||
with pytest.raises(AssertionError):
|
||||
await mqtt_mock_entry()
|
||||
assert "Invalid config for [mqtt]: required key not provided" in caplog.text
|
||||
assert await mqtt_mock_entry()
|
||||
assert "required key not provided" in caplog.text
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
Reference in New Issue
Block a user