mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Remove entity category system in favor of hidden_by (#68550)
This commit is contained in:
@@ -43,20 +43,13 @@ async def test_categorized_hidden_entities(hass):
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
)
|
||||
entity_entry3 = entity_registry.async_get_or_create(
|
||||
"switch",
|
||||
"test",
|
||||
"switch_system_id",
|
||||
suggested_object_id="system_switch",
|
||||
entity_category=EntityCategory.SYSTEM,
|
||||
)
|
||||
entity_entry4 = entity_registry.async_get_or_create(
|
||||
"switch",
|
||||
"test",
|
||||
"switch_hidden_integration_id",
|
||||
suggested_object_id="hidden_integration_switch",
|
||||
hidden_by=er.RegistryEntryHider.INTEGRATION,
|
||||
)
|
||||
entity_entry5 = entity_registry.async_get_or_create(
|
||||
entity_entry4 = entity_registry.async_get_or_create(
|
||||
"switch",
|
||||
"test",
|
||||
"switch_hidden_user_id",
|
||||
@@ -69,7 +62,6 @@ async def test_categorized_hidden_entities(hass):
|
||||
hass.states.async_set(entity_entry2.entity_id, "something_else")
|
||||
hass.states.async_set(entity_entry3.entity_id, "blah")
|
||||
hass.states.async_set(entity_entry4.entity_id, "foo")
|
||||
hass.states.async_set(entity_entry5.entity_id, "bar")
|
||||
|
||||
msg = await smart_home.async_handle_message(hass, get_default_config(hass), request)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user