We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39acf99 commit b288d97Copy full SHA for b288d97
2 files changed
Project-Aurora/Project-Aurora/Devices/YeeLight/YeeLightState.cs
@@ -17,6 +17,7 @@ protected static Task<bool> StateTask
17
_stateTask.Wait();
18
_stateTask = value;
19
}
20
+ get => _stateTask;
21
22
23
void InitState();
@@ -71,13 +72,15 @@ public IYeeLightState Update(Color color)
71
72
return newState;
73
74
- private void TurnOff()
75
+ private async void TurnOff()
76
{
77
+ await IYeeLightState.StateTask;
78
_lights.ForEach(device => device.SetPower(Constants.PowerStateParamValues.OFF));
79
80
- private void TurnOn()
81
+ private async void TurnOn()
82
83
84
_lights.ForEach(device => device.SetPower(Constants.PowerStateParamValues.ON));
85
86
Project-Aurora/Project-Aurora/YeeLightAPI.dll
0 Bytes
0 commit comments