very early frontend wip + small fixes.
This commit is contained in:
@@ -445,7 +445,10 @@ func (b *Bridge) makeCongruentLoop(ctx context.Context) {
|
||||
|
||||
// Handle power first
|
||||
if desired.Power != nil && active.Power != nil && *desired.Power != *active.Power {
|
||||
updates["light/"+*lightID] = ResourceUpdate{Power: gentools.Ptr(*desired.Power)}
|
||||
updates["light/"+*lightID] = ResourceUpdate{
|
||||
Power: gentools.Ptr(*desired.Power),
|
||||
TransitionDuration: gentools.Ptr(time.Millisecond * 101),
|
||||
}
|
||||
|
||||
newActiveState := activeStates[id]
|
||||
newActiveState.Power = gentools.Ptr(*desired.Power)
|
||||
|
||||
Reference in New Issue
Block a user