1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Adjust entity filters to make includes stronger than excludes (#74080)

* Adjust entity filters to make includes stronger than excludes

Fixes #59080

* adjust test for stronger entity glob includes

* sync with docs
This commit is contained in:
J. Nick Koston
2022-06-28 11:42:51 -05:00
committed by GitHub
parent 040ece76ab
commit a8349a4866
10 changed files with 312 additions and 87 deletions

View File

@@ -2153,7 +2153,7 @@ async def test_include_exclude_events_with_glob_filters(
client = await hass_client()
entries = await _async_fetch_logbook(client)
assert len(entries) == 6
assert len(entries) == 7
_assert_entry(
entries[0], name="Home Assistant", message="started", domain=ha.DOMAIN
)
@@ -2162,6 +2162,7 @@ async def test_include_exclude_events_with_glob_filters(
_assert_entry(entries[3], name="bla", entity_id=entity_id, state="20")
_assert_entry(entries[4], name="blu", entity_id=entity_id2, state="20")
_assert_entry(entries[5], name="included", entity_id=entity_id4, state="30")
_assert_entry(entries[6], name="included", entity_id=entity_id5, state="30")
async def test_empty_config(hass, hass_client, recorder_mock):