Added state (open/closed) to DeviceInfo repr() string.