This commit is contained in:
Claudio Maggioni (maggicl) 2020-05-27 22:39:25 +02:00
parent 7371999cc7
commit dfb27c7654

View file

@ -19,9 +19,6 @@ import org.springframework.stereotype.Component;
*/
@Component
public class UpdateTasks {
private final SensorRepository sensorRepository;
private final MotionSensorRepository motionSensorRepository;
private final SmartPlugRepository smartPlugRepository;
@ -36,14 +33,12 @@ public class UpdateTasks {
@Autowired
public UpdateTasks(
SensorRepository sensorRepository,
MotionSensorRepository motionSensorRepository,
SmartPlugRepository smartPlugRepository,
SensorService sensorService,
ThermostatService thermostatService,
MotionSensorService motionSensorService,
SensorSocketEndpoint sensorSocketEndpoint) {
this.sensorRepository = sensorRepository;
this.motionSensorRepository = motionSensorRepository;
this.smartPlugRepository = smartPlugRepository;
this.sensorService = sensorService;