Skip to content

Commit 0021208

Browse files
authored
Fix typing in entity event setup (#2579)
1 parent 1be32a8 commit 0021208

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core/integration-quality-scale/rules/entity-event-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ So we subscribe to the event in `async_added_to_hass` and unsubscribe in `async_
2020
class MySensor(SensorEntity):
2121
"""Representation of a sensor."""
2222

23-
unsubscribe: Callable[[], None] = None
23+
unsubscribe: Callable[[], None] | None = None
2424

2525
def __init__(self, client: MyClient) -> None:
2626
"""Initialize the sensor."""

0 commit comments

Comments
 (0)