Describe the bug
Random codes are getting assigned to unused code slots when that code number is enabled with an "(empty value)" for the PIN (see codes 7 and 9 in the screenshot). Disabling the code slider does not erase or disable the random PIN for that code slot on the physical lock. The code needs to be deleted manually on the lock itself. This does not happen when the PIN is "unknown" (see code 8 in the screenshot).
Environment (please complete the following information):
OS: HassOS
Type of device: RPi3
Home Assistant version: 0.118.4
Hassio
Component version:
Logs
2020-11-27 14:56:40 ERROR (SyncWorker_41) [homeassistant.components.zwave.lock] Invalid code provided: () usercode must be at least 4 and at most 4 digits
Describe the bug Random codes are getting assigned to unused code slots when that code number is enabled with an "(empty value)" for the PIN (see codes 7 and 9 in the screenshot). Disabling the code slider does not erase or disable the random PIN for that code slot on the physical lock. The code needs to be deleted manually on the lock itself. This does not happen when the PIN is "unknown" (see code 8 in the screenshot).
Environment (please complete the following information):
Logs 2020-11-27 14:56:40 ERROR (SyncWorker_41) [homeassistant.components.zwave.lock] Invalid code provided: () usercode must be at least 4 and at most 4 digits
Screenshots![image](https://user-images.githubusercontent.com/10821470/100486716-58690b80-30c2-11eb-8bd8-d39c38df3995.png)
Additional context