@@ -906,51 +906,6 @@ class DreameQuirkFactory {
906906 ) ;
907907 }
908908 } ) ;
909- case DreameQuirkFactory . KNOWN_QUIRKS . MATERIAL_DIRECTION_CLEANING :
910- return new Quirk ( {
911- id : id ,
912- title : "Clean Along Floor Direction" ,
913- description : "Clean in the direction of the configured/detected floor material (if applicable)." ,
914- options : [ "on" , "off" ] ,
915- getter : async ( ) => {
916- const res = await this . helper . readProperty (
917- DreameMiotServices [ "GEN2" ] . VACUUM_2 . SIID ,
918- DreameMiotServices [ "GEN2" ] . VACUUM_2 . PROPERTIES . MISC_TUNABLES . PIID
919- ) ;
920-
921- const deserializedResponse = DreameUtils . DESERIALIZE_MISC_TUNABLES ( res ) ;
922- switch ( deserializedResponse . MaterialDirectionClean ) {
923- case 1 :
924- return "on" ;
925- case 0 :
926- return "off" ;
927- default :
928- throw new Error ( `Received invalid value ${ deserializedResponse . MaterialDirectionClean } ` ) ;
929- }
930- } ,
931- setter : async ( value ) => {
932- let val ;
933-
934- switch ( value ) {
935- case "on" :
936- val = 1 ;
937- break ;
938- case "off" :
939- val = 0 ;
940- break ;
941- default :
942- throw new Error ( `Received invalid value ${ value } ` ) ;
943- }
944-
945- return this . helper . writeProperty (
946- DreameMiotServices [ "GEN2" ] . VACUUM_2 . SIID ,
947- DreameMiotServices [ "GEN2" ] . VACUUM_2 . PROPERTIES . MISC_TUNABLES . PIID ,
948- DreameUtils . SERIALIZE_MISC_TUNABLES_SINGLE_TUNABLE ( {
949- MaterialDirectionClean : val
950- } )
951- ) ;
952- }
953- } ) ;
954909 default :
955910 throw new Error ( `There's no quirk with id ${ id } ` ) ;
956911 }
@@ -978,7 +933,6 @@ DreameQuirkFactory.KNOWN_QUIRKS = {
978933 CLEAN_ROUTE : "ce44b688-f8bc-43a4-b44d-6db0d003c859" ,
979934 CLEAN_ROUTE_WITH_QUICK : "924c82a8-1c3f-4363-9303-e6158e0ca41c" ,
980935 SIDE_BRUSH_ON_CARPET : "d23d7e7e-ef74-42a6-8a0a-4163742e437b" ,
981- MATERIAL_DIRECTION_CLEANING : "2bb060c6-b8fb-41e6-962c-f42036d4ca54" ,
982936} ;
983937
984938module . exports = DreameQuirkFactory ;
0 commit comments