/// <summary> /// Merges in the new device to this one. /// </summary> /// <param name="device"></param> public void Merge(BasicDevice device) { this.states = device.states; this.AutomationData = device.AutomationData; this.Name = device.Name; this.Address = device.Address; }
public void AddOrUpdateDevice(FroggyPlugin.Data.BasicDevice device) { data.Devices[device.Address] = device; WriteFile(); }