Make deviceType readonly