forked from platypush/platypush
Removed children
from BluetoothDevice.to_json
- it makes events too verbose
This commit is contained in:
parent
4144e4f842
commit
256d9adbf2
1 changed files with 2 additions and 6 deletions
|
@ -158,10 +158,6 @@ if 'bluetooth_device' not in Base.metadata:
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
"""
|
"""
|
||||||
Overwrites ``to_dict`` to transform private column names into their
|
Overwrites ``to_dict`` to transform private column names into their
|
||||||
public representation, and also include the exposed services and
|
public representation.
|
||||||
child entities.
|
|
||||||
"""
|
"""
|
||||||
return {
|
return {k.lstrip('_'): v for k, v in super().to_dict().items()}
|
||||||
**{k.lstrip('_'): v for k, v in super().to_dict().items()},
|
|
||||||
'children': [child.to_dict() for child in self.children],
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue