def notify_battery_level(self): if not self.notifying: return self.PropertiesChanged( GATT_CHRC_IFACE, {'Value': [dbus.Byte(self.battery_lvl)] }, [])