mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-19 00:20:26 +00:00
Finished device, scene and activity tracking, updated upnp handling, updated HUE API config handling and test on and off calls.
This commit is contained in:
@@ -143,8 +143,9 @@ public class DeviceResource {
|
||||
}, new JsonTransformer());
|
||||
|
||||
delete (API_CONTEXT + "/:id", "application/json", (request, response) -> {
|
||||
log.debug("Delete a device");
|
||||
DeviceDescriptor deleted = deviceRepository.findOne(request.params(":id"));
|
||||
String anId = request.params(":id");
|
||||
log.debug("Delete a device: " + anId);
|
||||
DeviceDescriptor deleted = deviceRepository.findOne(anId);
|
||||
if(deleted == null)
|
||||
response.status(HttpStatus.SC_NOT_FOUND);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user