mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-08 18:06:29 +00:00
Fix typing in entity event setup (#2579)
This commit is contained in:
parent
1be32a88d4
commit
0021208f89
@ -20,7 +20,7 @@ So we subscribe to the event in `async_added_to_hass` and unsubscribe in `async_
|
||||
class MySensor(SensorEntity):
|
||||
"""Representation of a sensor."""
|
||||
|
||||
unsubscribe: Callable[[], None] = None
|
||||
unsubscribe: Callable[[], None] | None = None
|
||||
|
||||
def __init__(self, client: MyClient) -> None:
|
||||
"""Initialize the sensor."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user