From a6c36fa1c1723f31fb0782538c0c43a6fe95ebcc Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 19 Feb 2023 23:02:04 +0100 Subject: [PATCH] Added brand, model and model_id columns to `BluetoothDevice`. --- platypush/entities/bluetooth.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/platypush/entities/bluetooth.py b/platypush/entities/bluetooth.py index 00125b20f..0a546459f 100644 --- a/platypush/entities/bluetooth.py +++ b/platypush/entities/bluetooth.py @@ -4,6 +4,7 @@ from sqlalchemy import ( ForeignKey, Integer, JSON, + String, ) from platypush.common.db import Base @@ -51,6 +52,15 @@ if 'bluetooth_device' not in Base.metadata: UUID -> Name map. """ + brand = Column(String) + """ Device brand, as a string. """ + + model = Column(String) + """ Device model, as a string. """ + + model_id = Column(String) + """ Device model ID. """ + manufacturer_data = Column(JSON) """ Latest manufacturer data published by the device, as a