mirror of
https://github.com/nikdoof/hapz2m.git
synced 2026-01-30 04:38:20 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user