original_docstring: Mock a climate ADC-T3000 node with missing 'states' metadata on Thermostat Fan Mode.
docstring: Mock a climate ADC-T3000 node with missing 'states' metadata on Thermostat Fan Mode.
docstring_tokens: Mock a climate ADC - T3000 node with missing ' states ' metadata on Thermostat Fan Mode .
code: def climate_adc_t3000_missing_fan_mode_states_fixture(client, climate_adc_t3000_state):
      """Mock a climate ADC-T3000 node with missing 'states' metadata on Thermostat Fan Mode."""
      data = copy.deepcopy(climate_adc_t3000_state)
      data["name"] = f"{data['name']} missing fan mode states"
      for value in data["values"]:
          if (
              value["commandClassName"] == "Thermostat Fan Mode"
              and value["property"] == "mode"
          ):
              del value["metadata"]["states"]
      node = Node(client, data)
      client.driver.controller.nodes[node.node_id] = node
      return node
code_tokens: def climate_adc_t3000_missing_fan_mode_states_fixture ( client , climate_adc_t3000_state ) : data = copy . deepcopy ( climate_adc_t3000_state ) data [ "name" ] = f"{data['name']} missing fan mode states" for value in data [ "values" ] : if ( value [ "commandClassName" ] == "Thermostat Fan Mode" and value [ "property" ] == "mode" ) : del value [ "metadata" ] [ "states" ] node = Node ( client , data ) client . driver . controller . nodes [ node . node_id ] = node return node
short_docstring: Mock a climate ADC-T3000 node with missing 'states' metadata on Thermostat Fan Mode.
short_docstring_tokens: Mock a climate ADC - T3000 node with missing ' states ' metadata on Thermostat Fan Mode .
comment: """Mock a climate ADC-T3000 node with missing 'states' metadata on Thermostat Fan Mode."""