...
The above configuration would set 3 variables for the selected device, "foo", "variable_name" , "foo" and "hostname". When saving variables, omitting any existing variables remove those variables. To simplify - when you save variables for a device, all existing variables will be removed, and then variables will be set to the device as provided in the edit window.
...