Merge pull request #843 from dlech/type-hints

Fix missing type hints on Device.notify_subscribers()
This commit is contained in:
Gilles Boccon-Gibod
2025-12-29 16:35:46 -08:00
committed by GitHub

View File

@@ -5172,7 +5172,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.