mirror of
https://github.com/nikdoof/hapz2m.git
synced 2026-01-30 06:58:14 +00:00
Relax skipped device checks to allow mains-powered dimmers
Technically we should only have skipped the Coordinator because that has a zero address. Mains dimmers are usually also Routers, not EndDevices.
This commit is contained in:
2
z2m.go
2
z2m.go
@@ -79,7 +79,7 @@ func createAccessory(dev *Device) (*accessory.A, []*ExposeMapping, error) {
|
|||||||
if dev.Disabled ||
|
if dev.Disabled ||
|
||||||
!dev.Supported ||
|
!dev.Supported ||
|
||||||
!dev.InterviewCompleted ||
|
!dev.InterviewCompleted ||
|
||||||
dev.Type != "EndDevice" {
|
dev.Type == "Coordinator" {
|
||||||
return nil, nil, ErrDeviceSkipped
|
return nil, nil, ErrDeviceSkipped
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user