'Test setting the target temperature range without attribute.'

def test_set_target_temp_range_bad_attr(self):

    state = self.hass.states.get(ENTITY_ECOBEE)
    self.assertEqual(None, state.attributes.get('temperature'))
    self.assertEqual(21.0, state.attributes.get('target_temp_low'))
    self.assertEqual(24.0, state.attributes.get('target_temp_high'))
    climate.set_temperature(self.hass, temperature=None, entity_id=ENTITY_ECOBEE, target_temp_low=None, target_temp_high=None)
    self.hass.block_till_done()
    state = self.hass.states.get(ENTITY_ECOBEE)
    self.assertEqual(None, state.attributes.get('temperature'))
    self.assertEqual(21.0, state.attributes.get('target_temp_low'))
    self.assertEqual(24.0, state.attributes.get('target_temp_high'))
