fix: prevent crash when unsupported device model is configured
Iterate over self.devices (successfully built devices) instead of self.amcrest_devices (all API devices) in event and snapshot collection loops. This prevents KeyError when calling is_rebooting() or get_device_name() for devices that failed model validation. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>pull/106/head
parent
2088bd66f0
commit
a1a41f3276
Loading…
Reference in New Issue