fix crash in hue2 driver.
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-31 21:19:53 +02:00
parent 19eb205ee3
commit bf903c1d71
+3
View File
@@ -252,6 +252,9 @@ func (b *Bridge) MakeCongruent(ctx context.Context) (int, error) {
updates := make(map[string]ResourceUpdate)
for _, device := range b.devices {
resource := b.resources[device.InternalID]
if resource == nil {
continue
}
// Update device
if resource.Metadata.Name != device.Name {