From 256d9adbf2ebb6e5770734ccc55e12c172f1704d Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 19 Mar 2023 12:48:11 +0100 Subject: [PATCH] Removed `children` from `BluetoothDevice.to_json` - it makes events too verbose --- platypush/entities/bluetooth/_device.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/platypush/entities/bluetooth/_device.py b/platypush/entities/bluetooth/_device.py index 0c4f2a98e..1407bb7af 100644 --- a/platypush/entities/bluetooth/_device.py +++ b/platypush/entities/bluetooth/_device.py @@ -158,10 +158,6 @@ if 'bluetooth_device' not in Base.metadata: def to_dict(self): """ Overwrites ``to_dict`` to transform private column names into their - public representation, and also include the exposed services and - child entities. + public representation. """ - return { - **{k.lstrip('_'): v for k, v in super().to_dict().items()}, - 'children': [child.to_dict() for child in self.children], - } + return {k.lstrip('_'): v for k, v in super().to_dict().items()}