mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
Rename logbook humanify function (#71597)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
bec3c6e66a
commit
347193055e
@ -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,
|
||||
|
@ -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
|
||||
),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user