@@ -101,7 +101,7 @@ class DeviceProperties:
101
101
main_brush : int = 0
102
102
side_brush : int = 0
103
103
mop_life : int = 0
104
- net_status : DevicePropertiesNetwork = DevicePropertiesNetwork ()
104
+ net_status : DevicePropertiesNetwork
105
105
repeat_state : int = 0
106
106
tank_state : int = 0
107
107
cloth_state : int = 0
@@ -121,7 +121,7 @@ class DeviceProperties:
121
121
charge_state : int = 0
122
122
back_to_wash : int = 0
123
123
break_charging : int = 0
124
- order_total : DevicePropertiesOrderTotal = DevicePropertiesOrderTotal ()
124
+ order_total : DevicePropertiesOrderTotal
125
125
memory_map : int = 0
126
126
current_map_id : int = 0
127
127
map_num : int = 0
@@ -131,15 +131,19 @@ class DeviceProperties:
131
131
quiet_begin_time : int = 0
132
132
quiet_end_time : int = 0
133
133
broken_clean : int = 0
134
- privacy : DevicePropertiesPrivacy = DevicePropertiesPrivacy ()
134
+ privacy : DevicePropertiesPrivacy
135
135
cur_path : List [float ]
136
136
dust_action : int = 0
137
137
voice_type : int = 0
138
- quiet_status : DevicePropertiesQuiet = DevicePropertiesQuiet ()
138
+ quiet_status : DevicePropertiesQuiet
139
139
last_update_time : int = 0
140
140
141
141
def __init__ (self , ** kwargs ):
142
142
setattr (self , 'cur_path' , [])
143
+ setattr (self , 'net_stauts' , DevicePropertiesNetwork ())
144
+ setattr (self , 'order_total' , DevicePropertiesOrderTotal ())
145
+ setattr (self , 'privacy' , DevicePropertiesPrivacy ())
146
+ setattr (self , 'quiet_status' , DevicePropertiesQuiet ())
143
147
self .update (kwargs )
144
148
145
149
def update (self , data : dict [str , Any ]) -> bool :
0 commit comments