mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 05:50:13 +00:00
Fix entity category for binary_sensor fails setup (#103511)
This commit is contained in:
@@ -2172,6 +2172,18 @@ async def test_setup_manual_mqtt_with_invalid_config(
|
||||
},
|
||||
"sensor.test",
|
||||
),
|
||||
(
|
||||
{
|
||||
mqtt.DOMAIN: {
|
||||
"binary_sensor": {
|
||||
"name": "test",
|
||||
"state_topic": "test-topic",
|
||||
"entity_category": "config",
|
||||
}
|
||||
}
|
||||
},
|
||||
"binary_sensor.test",
|
||||
),
|
||||
],
|
||||
)
|
||||
@patch(
|
||||
@@ -2195,6 +2207,14 @@ async def test_setup_manual_mqtt_with_invalid_entity_category(
|
||||
@pytest.mark.parametrize(
|
||||
("config", "entity_id"),
|
||||
[
|
||||
(
|
||||
{
|
||||
"name": "test",
|
||||
"state_topic": "test-topic",
|
||||
"entity_category": "config",
|
||||
},
|
||||
"binary_sensor.test",
|
||||
),
|
||||
(
|
||||
{
|
||||
"name": "test",
|
||||
|
||||
Reference in New Issue
Block a user