Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions homeassistant/components/logbook/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
# Domains that are always continuous
#
# These are hard coded here to avoid importing
# the entire counter and proximity integrations
# the entire counter, image, and proximity integrations
# to get the name of the domain.
ALWAYS_CONTINUOUS_DOMAINS = {"counter", "proximity"}
ALWAYS_CONTINUOUS_DOMAINS = {
"counter",
"image",
"proximity",
}
Comment on lines +14 to +20

Copilot AI Apr 27, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add/adjust logbook tests to cover the new behavior that image entities are treated as always-continuous and therefore excluded from logbook output/streams. The logbook component already has coverage for other always-continuous domains (e.g., counter/proximity), so extending those tests (e.g., tests/components/logbook/test_init.py::test_filter_continuous_sensor_values and/or websocket stream tests) to include an image.* entity would prevent regressions.

Copilot uses AI. Check for mistakes.

# Domains that are continuous if there is a UOM set on the entity
CONDITIONALLY_CONTINUOUS_DOMAINS = {SENSOR_DOMAIN}
Expand Down
Loading