File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
adafruit_ble/services/standard Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,8 @@ valid-metaclass-classmethod-first-arg=mcs
361
361
[DESIGN]
362
362
363
363
# Maximum number of arguments for function / method
364
- max-args =5
364
+ # Changed for this library, Adafruit_CircuitPython_BLE
365
+ max-args =9
365
366
366
367
# Maximum number of attributes for a class (see R0902).
367
368
# max-attributes=7
Original file line number Diff line number Diff line change 14
14
import binascii
15
15
import os
16
16
import sys
17
- from collections .abc import Iterable
18
17
19
18
from .. import Service
20
19
from ...uuid import StandardUUID
21
20
from ...characteristics import StructCharacteristic
22
21
from ...characteristics .string import FixedStringCharacteristic
23
22
24
23
try :
25
- from typing import Optional , TYPE_CHECKING
24
+ from typing import Iterable , Optional , TYPE_CHECKING
26
25
27
26
if TYPE_CHECKING :
28
27
import _bleio
@@ -72,6 +71,10 @@ def __init__( # pylint: disable=too-many-arguments
72
71
pass
73
72
if firmware_revision is None :
74
73
firmware_revision = getattr (os .uname (), "version" , None )
74
+ if pnp_id is None :
75
+ # These values are not necessarily valid according to the spec,
76
+ # but they work on Android and iOS.
77
+ pnp_id = (0x00 , 0x0000 , 0x0000 , 0x0000 )
75
78
super ().__init__ (
76
79
manufacturer = manufacturer ,
77
80
software_revision = software_revision ,
You can’t perform that action at this time.
0 commit comments