Fix missing type hints on Device.notify_subscribers()

Add type hints for all arguments. Otherwise static checkers complain
when you try to use it.
This commit is contained in:
David Lechner
2025-12-29 16:03:46 -06:00
parent ae2c638256
commit 793fcd750c

View File

@@ -5173,7 +5173,7 @@ class Device(utils.CompositeEventEmitter):
await self.gatt_server.notify_subscriber(connection, attribute, value, force)
async def notify_subscribers(
self, attribute: Attribute, value=None, force=False
self, attribute: Attribute, value: Optional[Any] = None, force: bool = False
) -> None:
"""
Send a notification to all the subscribers of an attribute.