Exemplo n.º 1
0
        public override void RemoveDevice(Device device)
        {
            var zWaveDevice = device as ZWaveDevice;

            var result = ZWaveController.RemoveFailedDevice(zWaveDevice.BackingObject);

            if (!result)
            {
                throw new HomeAutomationException("Failed to remove device " + device);
            }

            Devices.Remove(device);
        }