File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,12 @@ def __init__(
57
57
self ,
58
58
** kwargs ,
59
59
):
60
- default_bg = kwargs .pop ("default_bg" )
61
- debug = kwargs .pop ("debug" )
60
+ default_bg = 0x000000
61
+ debug = False
62
+ if "default_bg" in kwargs :
63
+ default_bg = kwargs .pop ("default_bg" )
64
+ if "debug" in kwargs :
65
+ debug = kwargs .pop ("debug" )
62
66
63
67
matrix = Matrix (** kwargs )
64
68
Original file line number Diff line number Diff line change @@ -50,9 +50,11 @@ class Network(NetworkBase):
50
50
51
51
def __init__ (self , ** kwargs ):
52
52
extract_values = True
53
+ debug = False
53
54
if "extract_values" in kwargs :
54
55
extract_values = kwargs .pop ("extract_values" )
55
- debug = kwargs .pop ("debug" )
56
+ if "debug" in kwargs :
57
+ debug = kwargs .pop ("debug" )
56
58
wifi = WiFi (** kwargs )
57
59
58
60
super ().__init__ (
You can’t perform that action at this time.
0 commit comments