Fix access check for light expose features

Some dimmers expose features with state|set instead of state|get|set.
Relax the check to cater for more light/dimmers.
This commit is contained in:
Darell Tan
2023-08-05 02:17:06 +08:00
parent b1949c73fd
commit 4eac1ba2a9
2 changed files with 5 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ func createLightServices(dev *Device) (byte, []*service.S, []*ExposeMapping, err
light := service.NewLightbulb()
for _, feat := range exp.Features {
if !feat.IsStateSetGet() {
if !feat.IsStateSettable() {
continue
}