summaryrefslogtreecommitdiff
path: root/include/py/homekit
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-06-11 05:06:47 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-06-11 05:06:47 +0300
commit08e736c48990bec0423f72cf52dd1a457e9f9590 (patch)
tree6e64185d519295d1f5a4a38d9fd3d6362d2a19a3 /include/py/homekit
parent3da04de6fd83bca19447a865bf84b3403a14e0c1 (diff)
Revert "ipcam/config: fix schema validation"
This reverts commit 3da04de6fd83bca19447a865bf84b3403a14e0c1.
Diffstat (limited to 'include/py/homekit')
-rw-r--r--include/py/homekit/camera/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/py/homekit/camera/config.py b/include/py/homekit/camera/config.py
index 0d4c747..331e595 100644
--- a/include/py/homekit/camera/config.py
+++ b/include/py/homekit/camera/config.py
@@ -65,7 +65,7 @@ class IpcamConfig(ConfigUnit):
if 'ext_hdd' not in linux_box:
raise ValueError(f'cam-{n}: linux box {cam["server"]} must have ext_hdd defined')
disk = cam['disk']-1
- if disk < 1 or disk >= len(linux_box['ext_hdd']):
+ if disk < 0 or disk >= len(linux_box['ext_hdd']):
raise ValueError(f'cam-{n}: invalid disk index for linux box {cam["server"]}')
@classmethod