mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02: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