@@ -86,9 +86,11 @@ def __init__(self, advert_id, ad_type):
8686 }
8787
8888 def start (self ):
89+ """Start GLib event loop"""
8990 self .mainloop .run ()
9091
9192 def stop (self ):
93+ """Stop GLib event loop"""
9294 self .mainloop .quit ()
9395
9496 def get_path (self ):
@@ -98,7 +100,7 @@ def get_path(self):
98100 @dbus .service .method (constants .LE_ADVERTISEMENT_IFACE ,
99101 in_signature = '' ,
100102 out_signature = '' )
101- def Release (self ):
103+ def Release (self ): # pylint: disable=invalid-name
102104 """
103105 This method gets called when the service daemon
104106 removes the Advertisement. A client can use it to do
@@ -110,13 +112,13 @@ def Release(self):
110112 pass
111113
112114 @property
113- def service_UUIDs (self ):
115+ def service_UUIDs (self ): # pylint: disable=invalid-name
114116 """List of UUIDs that represent available services."""
115117 return self .Get (constants .LE_ADVERTISEMENT_IFACE ,
116118 'ServiceUUIDs' )
117119
118120 @service_UUIDs .setter
119- def service_UUIDs (self , UUID ):
121+ def service_UUIDs (self , UUID ): # pylint: disable=invalid-name
120122 self .Set (constants .LE_ADVERTISEMENT_IFACE ,
121123 'ServiceUUIDs' ,
122124 UUID )
@@ -125,7 +127,7 @@ def manufacturer_data(self):
125127 """Manufacturer Data to be broadcast (Currently not supported)"""
126128 pass
127129
128- def solicit_UUIDs (self ):
130+ def solicit_UUIDs (self ): # pylint: disable=invalid-name
129131 """Manufacturer Data to be broadcast (Currently not supported)"""
130132 pass
131133
@@ -137,10 +139,10 @@ def service_data(self):
137139
138140 @service_data .setter
139141 def service_data (self , data ):
140- for UUID in data :
142+ for uuid in data :
141143 self .Set (constants .LE_ADVERTISEMENT_IFACE ,
142144 'ServiceData' ,
143- {UUID : dbus .Array (data [UUID ], signature = 'y' )})
145+ {uuid : dbus .Array (data [uuid ], signature = 'y' )})
144146
145147 @property
146148 def include_tx_power (self ):
@@ -174,7 +176,7 @@ def appearance(self, appearance):
174176 @dbus .service .method (constants .DBUS_PROP_IFACE ,
175177 in_signature = 's' ,
176178 out_signature = 'a{sv}' )
177- def GetAll (self , interface_name ):
179+ def GetAll (self , interface_name ): # pylint: disable=invalid-name
178180 """Return the advertisement properties.
179181
180182 This method is registered with the D-Bus at
@@ -219,7 +221,8 @@ def GetAll(self, interface_name):
219221
220222 @dbus .service .method (dbus .PROPERTIES_IFACE ,
221223 in_signature = 'ss' , out_signature = 'v' )
222- def Get (self , interface_name , property_name ):
224+ def Get (self , interface_name , # pylint: disable=invalid-name
225+ property_name ):
223226 """DBus API for getting a property value"""
224227
225228 if interface_name != constants .LE_ADVERTISEMENT_IFACE :
@@ -234,7 +237,8 @@ def Get(self, interface_name, property_name):
234237
235238 @dbus .service .method (dbus .PROPERTIES_IFACE ,
236239 in_signature = 'ssv' , out_signature = '' )
237- def Set (self , interface_name , property_name , value , * args , ** kwargs ):
240+ def Set (self , interface_name , property_name , value ,
241+ * args , ** kwargs ): # pylint: disable=invalid-name
238242 """Standard D-Bus API for setting a property value"""
239243
240244 try :
0 commit comments