@@ -274,13 +274,12 @@ async def get_dock_summary(self, device_id: str, dock_type: RoborockEnum) -> Doc
274
274
return None
275
275
276
276
async def get_prop (self , device_id : str ) -> DeviceProp | None :
277
- [status , dnd_timer , clean_summary , consumable , multi_maps_list ] = await asyncio .gather (
277
+ [status , dnd_timer , clean_summary , consumable ] = await asyncio .gather (
278
278
* [
279
279
self .get_status (device_id ),
280
280
self .get_dnd_timer (device_id ),
281
281
self .get_clean_summary (device_id ),
282
- self .get_consumable (device_id ),
283
- self .get_multi_maps_list (device_id )
282
+ self .get_consumable (device_id )
284
283
]
285
284
)
286
285
last_clean_record = None
@@ -297,7 +296,6 @@ async def get_prop(self, device_id: str) -> DeviceProp | None:
297
296
consumable ,
298
297
last_clean_record ,
299
298
dock_summary ,
300
- multi_maps_list
301
299
)
302
300
return None
303
301
@@ -324,7 +322,7 @@ async def get_room_mapping(self, device_id: str) -> list[RoomMapping]:
324
322
mapping = await self .send_command (device_id , RoborockCommand .GET_ROOM_MAPPING )
325
323
if isinstance (mapping , list ):
326
324
return [
327
- RoomMapping (segment_id , iot_id )
325
+ RoomMapping (segment_id = segment_id , iot_id = segment_id ) # type: ignore
328
326
for segment_id , iot_id in [unpack_list (room , 2 ) for room in mapping ]
329
327
]
330
328
return []
@@ -463,8 +461,7 @@ async def get_home_data(self, user_data: UserData) -> HomeData:
463
461
home_request = PreparedRequest (
464
462
rriot .r .a ,
465
463
{
466
- "Authorization" : f'Hawk id="{ rriot .u } ", s="{ rriot .s } ", ts="{ timestamp } ", nonce="{ nonce } ", '
467
- f'mac="{ mac } "' ,
464
+ "Authorization" : f'Hawk id="{ rriot .u } ", s="{ rriot .s } ", ts="{ timestamp } ", nonce="{ nonce } ", mac="{ mac } "' ,
468
465
},
469
466
)
470
467
home_response = await home_request .request ("get" , "/user/homes/" + str (home_id ))
0 commit comments