Small delay between deleting sensor and adding sensor.

I think that the mqtt update works better because of this.
merge-updating
Stefan Roelofs 4 years ago
parent f6261d0f45
commit 76b7d05fd7

@ -377,6 +377,7 @@ namespace hass_workstation_service.Data
public async void UpdateConfiguredSensor(Guid id, AbstractSensor sensor)
{
await DeleteSensor(id);
await Task.Delay(500);
AddSensor(sensor);
WriteSensorSettingsAsync();
}

Loading…
Cancel
Save