Rename logbook humanify function (#71597)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Erik Montnemery 2022-05-09 22:10:26 +02:00 committed by GitHub
parent bec3c6e66a
commit 347193055e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -324,7 +324,7 @@ class LogbookView(HomeAssistantView):
)
def humanify(
def _humanify(
hass: HomeAssistant,
rows: Generator[Row, None, None],
entity_name_cache: EntityNameCache,
@ -548,7 +548,7 @@ def _get_events(
query = query.order_by(Events.time_fired)
return list(
humanify(
_humanify(
hass,
yield_rows(query),
entity_name_cache,

View File

@ -52,7 +52,7 @@ def mock_humanify(hass_, rows):
context_lookup, entity_name_cache, {}, event_cache
)
return list(
logbook.humanify(
logbook._humanify(
hass_, rows, entity_name_cache, event_cache, context_augmenter
),
)