homebridge fix error
@@ -239,9 +239,8 @@ function checkHomebridge {
putHomebridgeUpdated "homebridgepin" "$pin"
else
# or create new pin and write it in db
- local pin=$((10000 + RANDOM % 99999))$((10000 + RANDOM % 99999))
+ local pin=$((1000 + RANDOM % 9999))$((1000 + RANDOM % 9999))
putHomebridgeUpdated "homebridgepin" "$pin"
- done
fi
fi
