Skip to content

Commit 129da8d

Browse files
author
valentinfrlch
committed
Fix category and label resolver
1 parent 759d609 commit 129da8d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

custom_components/llmvision/timeline.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,8 +710,13 @@ async def create_event(
710710
# Resolve category and label if not provided
711711
if not label:
712712
try:
713+
query_text = " ".join(
714+
part
715+
for part in (title or "", description or "")
716+
if part
717+
)
713718
(auto_category, auto_label) = await _get_category_and_label(
714-
self.hass, self._config_entry, label
719+
self.hass, self._config_entry, query_text
715720
)
716721
if not category:
717722
category = auto_category

0 commit comments

Comments
 (0)