mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +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,
|
hass: HomeAssistant,
|
||||||
rows: Generator[Row, None, None],
|
rows: Generator[Row, None, None],
|
||||||
entity_name_cache: EntityNameCache,
|
entity_name_cache: EntityNameCache,
|
||||||
@ -548,7 +548,7 @@ def _get_events(
|
|||||||
query = query.order_by(Events.time_fired)
|
query = query.order_by(Events.time_fired)
|
||||||
|
|
||||||
return list(
|
return list(
|
||||||
humanify(
|
_humanify(
|
||||||
hass,
|
hass,
|
||||||
yield_rows(query),
|
yield_rows(query),
|
||||||
entity_name_cache,
|
entity_name_cache,
|
||||||
|
@ -52,7 +52,7 @@ def mock_humanify(hass_, rows):
|
|||||||
context_lookup, entity_name_cache, {}, event_cache
|
context_lookup, entity_name_cache, {}, event_cache
|
||||||
)
|
)
|
||||||
return list(
|
return list(
|
||||||
logbook.humanify(
|
logbook._humanify(
|
||||||
hass_, rows, entity_name_cache, event_cache, context_augmenter
|
hass_, rows, entity_name_cache, event_cache, context_augmenter
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user