title: Query request for Modes trait not working
body: <p>I'm building a smart thermostat connection to Google Home. However, for the automated testing with the Test Suite, I need to add currentModeSettings to the Query request. However, when I add that, the app breaks completely.</p>
  <p>I couldn't get my SYNC payload to print, but here's the map for the device. Note the mode &quot;load_key&quot;. This has always been there and worked up to now. The issue ONLY started when I needed to add it to the QUERY request.</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;map&quot;: {
          &quot;availableThermostatModes&quot;: [
              &quot;heat&quot;,
              &quot;cool&quot;
          ],
          &quot;thermostatTemperatureRange&quot;: {
              &quot;map&quot;: {
                  &quot;maxThresholdCelsius&quot;: 30,
                  &quot;minThresholdCelsius&quot;: 6
              }
          },
          &quot;availableModes&quot;: {
              &quot;myArrayList&quot;: [
                  {
                      &quot;map&quot;: {
                          &quot;ordered&quot;: false,
                          &quot;settings&quot;: {
                              &quot;myArrayList&quot;: [
                                  {
                                      &quot;map&quot;: {
                                          &quot;setting_name&quot;: &quot;comfort&quot;,
                                          &quot;setting_values&quot;: {
                                              &quot;myArrayList&quot;: [
                                                  {
                                                      &quot;map&quot;: {
                                                          &quot;setting_synonym&quot;: {
                                                              &quot;myArrayList&quot;: [
                                                                  &quot;comfort&quot;
                                                              ]
                                                          },
                                                          &quot;lang&quot;: &quot;en&quot;
                                                      }
                                                  },
                                                  {
                                                      &quot;map&quot;: {
                                                          &quot;setting_synonym&quot;: {
                                                              &quot;myArrayList&quot;: [
                                                                  &quot;comfort&quot;
                                                              ]
                                                          },
                                                          &quot;lang&quot;: &quot;nl&quot;
                                                      }
                                                  },
                                                  {
                                                      &quot;map&quot;: {
                                                          &quot;setting_synonym&quot;: {
                                                              &quot;myArrayList&quot;: [
                                                                  &quot;confort&quot;
                                                              ]
                                                          },
                                                          &quot;lang&quot;: &quot;fr&quot;
                                                      }
                                                  }
                                              ]
                                          }
                                      }
                                  },
                                  {
                                      &quot;map&quot;: {
                                          &quot;setting_name&quot;: &quot;home&quot;,
                                          &quot;setting_values&quot;: {
                                              &quot;myArrayList&quot;: [
                                                  {
                                                      &quot;map&quot;: {
                                                          &quot;setting_synonym&quot;: {
                                                              &quot;myArrayList&quot;: [
                                                                  &quot;home&quot;
                                                              ]
                                                          },
                                                          &quot;lang&quot;: &quot;en&quot;
                                                      }
                                                  },
                                                  {
                                                      &quot;map&quot;: {
                                                          &quot;setting_synonym&quot;: {
                                                              &quot;myArrayList&quot;: [
                                                                  &quot;thuis&quot;
                                                              ]
                                                          },
                                                          &quot;lang&quot;: &quot;nl&quot;
                                                      }
                                                  },
                                                  {
                                                      &quot;map&quot;: {
                                                          &quot;setting_synonym&quot;: {
                                                              &quot;myArrayList&quot;: [
                                                                  &quot;maison&quot;
                                                              ]
                                                          },
                                                          &quot;lang&quot;: &quot;fr&quot;
                                                      }
                                                  }
                                              ]
                                          }
                                      }
                                  },
                                  {
                                      &quot;map&quot;: {
                                          &quot;setting_name&quot;: &quot;sleep&quot;,
                                          &quot;setting_values&quot;: {
                                              &quot;myArrayList&quot;: [
                                                  {
                                                      &quot;map&quot;: {
                                                          &quot;setting_synonym&quot;: {
                                                              &quot;myArrayList&quot;: [
                                                                  &quot;sleep&quot;
                                                              ]
                                                          },
                                                          &quot;lang&quot;: &quot;en&quot;
                                                      }
                                                  },
                                                  {
                                                      &quot;map&quot;: {
                                                          &quot;setting_synonym&quot;: {
                                                              &quot;myArrayList&quot;: [
                                                                  &quot;slapen&quot;
                                                              ]
                                                          },
                                                          &quot;lang&quot;: &quot;nl&quot;
                                                      }
                                                  },
                                                  {
                                                      &quot;map&quot;: {
                                                          &quot;setting_synonym&quot;: {
                                                              &quot;myArrayList&quot;: [
                                                                  &quot;nuit&quot;
                                                              ]
                                                          },
                                                          &quot;lang&quot;: &quot;fr&quot;
                                                      }
                                                  }
                                              ]
                                          }
                                      }
                                  },
                                  {
                                      &quot;map&quot;: {
                                          &quot;setting_name&quot;: &quot;away&quot;,
                                          &quot;setting_values&quot;: {
                                              &quot;myArrayList&quot;: [
                                                  {
                                                      &quot;map&quot;: {
                                                          &quot;setting_synonym&quot;: {
                                                              &quot;myArrayList&quot;: [
                                                                  &quot;away&quot;
                                                              ]
                                                          },
                                                          &quot;lang&quot;: &quot;en&quot;
                                                      }
                                                  },
                                                  {
                                                      &quot;map&quot;: {
                                                          &quot;setting_synonym&quot;: {
                                                              &quot;myArrayList&quot;: [
                                                                  &quot;weg&quot;
                                                              ]
                                                          },
                                                          &quot;lang&quot;: &quot;nl&quot;
                                                      }
                                                  },
                                                  {
                                                      &quot;map&quot;: {
                                                          &quot;setting_synonym&quot;: {
                                                              &quot;myArrayList&quot;: [
                                                                  &quot;parti&quot;
                                                              ]
                                                          },
                                                          &quot;lang&quot;: &quot;fr&quot;
                                                      }
                                                  }
                                              ]
                                          }
                                      }
                                  },
                                  {
                                      &quot;map&quot;: {
                                          &quot;setting_name&quot;: &quot;holiday&quot;,
                                          &quot;setting_values&quot;: {
                                              &quot;myArrayList&quot;: [
                                                  {
                                                      &quot;map&quot;: {
                                                          &quot;setting_synonym&quot;: {
                                                              &quot;myArrayList&quot;: [
                                                                  &quot;holiday&quot;
                                                              ]
                                                          },
                                                          &quot;lang&quot;: &quot;en&quot;
                                                      }
                                                  },
                                                  {
                                                      &quot;map&quot;: {
                                                          &quot;setting_synonym&quot;: {
                                                              &quot;myArrayList&quot;: [
                                                                  &quot;vakantie&quot;
                                                              ]
                                                          },
                                                          &quot;lang&quot;: &quot;nl&quot;
                                                      }
                                                  },
                                                  {
                                                      &quot;map&quot;: {
                                                          &quot;setting_synonym&quot;: {
                                                              &quot;myArrayList&quot;: [
                                                                  &quot;conge&quot;
                                                              ]
                                                          },
                                                          &quot;lang&quot;: &quot;fr&quot;
                                                      }
                                                  }
                                              ]
                                          }
                                      }
                                  }
                              ]
                          },
                          &quot;name&quot;: &quot;load_key&quot;,
                          &quot;name_values&quot;: {
                              &quot;myArrayList&quot;: [
                                  {
                                      &quot;map&quot;: {
                                          &quot;lang&quot;: &quot;en&quot;,
                                          &quot;name_synonym&quot;: {
                                              &quot;myArrayList&quot;: [
                                                  &quot;setting&quot;,
                                                  &quot;mode&quot;,
                                                  &quot;state&quot;,
                                                  &quot;modus&quot;
                                              ]
                                          }
                                      }
                                  },
                                  {
                                      &quot;map&quot;: {
                                          &quot;lang&quot;: &quot;nl&quot;,
                                          &quot;name_synonym&quot;: {
                                              &quot;myArrayList&quot;: [
                                                  &quot;stand&quot;,
                                                  &quot;mode&quot;,
                                                  &quot;state&quot;,
                                                  &quot;staat&quot;,
                                                  &quot;instelling&quot;,
                                                  &quot;modus&quot;
                                              ]
                                          }
                                      }
                                  },
                                  {
                                      &quot;map&quot;: {
                                          &quot;lang&quot;: &quot;fr&quot;,
                                          &quot;name_synonym&quot;: {
                                              &quot;myArrayList&quot;: [
                                                  &quot;reglage&quot;,
                                                  &quot;mode&quot;,
                                                  &quot;state&quot;,
                                                  &quot;modus&quot;
                                              ]
                                          }
                                      }
                                  }
                              ]
                          }
                      }
                  }
              ]
          },
          &quot;thermostatTemperatureUnit&quot;: &quot;C&quot;
      }
  }
  </code></pre>
  <p>My QUERY response:</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;devices&quot;: {
          &quot;qb-659917016701-1908A0ATSP&quot;: {
              &quot;currentModeSettings&quot;: {
                  &quot;load_key&quot;: &quot;custom&quot;
              },
              &quot;thermostatTemperatureSetpoint&quot;: 18.0,
              &quot;thermostatTemperatureAmbient&quot;: 23.0,
              &quot;online&quot;: true,
              &quot;thermostatMode&quot;: &quot;cool&quot;,
              &quot;thermostatHumidityAmbient&quot;: 35.0,
              &quot;status&quot;: &quot;SUCCESS&quot;
          }
      }
  }
  </code></pre>
  <p>When adding the part <code>&quot;currentModeSettings&quot;: {&quot;load_key&quot;: &quot;custom&quot;},</code>, the app broke, the Google Home app doesn't display the temperature anymore, the Test Suite doesn't work anymore either. What am I doing wrong?</p>