Added connected flag to BluetoothService.

This commit is contained in:
Fabio Manganiello 2023-03-19 12:49:38 +01:00
parent 256d9adbf2
commit 243de15813
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -48,6 +48,9 @@ if 'bluetooth_service' not in Base.metadata:
is_ble = Column(Boolean, default=False)
""" Whether the service is a BLE service. """
connected = Column(Boolean, default=False)
""" Whether an active connection exists to this service. """
__mapper_args__ = {
'polymorphic_identity': __tablename__,
}