Intent-Code Divergence
Medium
- Confidence
- 92% confidence
- Finding
- The status APIs (`get_status`, `is_on`, `is_off`) report only an internally cached flag that is updated after writes, not the relay's actual hardware state. If the device is unplugged, externally changed, reset, or a write silently fails at the hardware level, callers may make safety-relevant decisions based on false state information, which is especially risky for code controlling physical equipment.
