fix: declare transient canvas_count on PendingDevice for mypy

ha-relevant: maybe
This commit is contained in:
Pouzor
2026-06-25 21:33:05 +02:00
parent d7ab4ba49a
commit 234019c7b7
+4
View File
@@ -117,6 +117,10 @@ class PendingDevice(Base):
lqi: Mapped[int | None] = mapped_column(Integer, nullable=True)
discovered_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), default=_now)
# Transient (not persisted): populated per-request by the scan routes to report
# how many canvases this device already appears on. Not a mapped column.
canvas_count: int = 0
class PendingDeviceLink(Base):
"""Link between two Zigbee endpoints discovered during import.