We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1be32a8 commit 0021208Copy full SHA for 0021208
docs/core/integration-quality-scale/rules/entity-event-setup.md
@@ -20,7 +20,7 @@ So we subscribe to the event in `async_added_to_hass` and unsubscribe in `async_
20
class MySensor(SensorEntity):
21
"""Representation of a sensor."""
22
23
- unsubscribe: Callable[[], None] = None
+ unsubscribe: Callable[[], None] | None = None
24
25
def __init__(self, client: MyClient) -> None:
26
"""Initialize the sensor."""
0 commit comments