Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error setting up entry Hikvision_axpro_192.168.2.120 for hikvision_axpro after update V1.3.0 build 241205 #149

Open
latishev opened this issue Dec 26, 2024 · 0 comments

Comments

@latishev
Copy link

latishev commented Dec 26, 2024

Integration releases v2.3.0 & v3.0.0-beta4

AX Pro
Model DS-PWA96-M2H-WE
Device Version V1.3.0 build 241205

HAOS
Core 2024.12.5
Supervisor 2024.12.0
Operating System 14.1
Пользовательский интерфейс 20241127.8

Регистратор: homeassistant.config_entries
Источник: config_entries.py:640
Первое сообщение: 01:19:22 (4 сообщений)
Последнее сообщение: 01:38:25

Error setting up entry Hikvision_axpro_192.168.2.120 for hikvision_axpro
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/hikvision_axpro/init.py", line 103, in async_setup_entry
await hass.async_add_executor_job(coordinator.init_device)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/hikvision_axpro/init.py", line 181, in init_device
self.load_devices()
~~~~~~~~~~~~~~~~~^^
File "/config/custom_components/hikvision_axpro/init.py", line 219, in load_devices
devices = self._load_devices()
File "/config/custom_components/hikvision_axpro/init.py", line 232, in _load_devices
return ZonesConf.from_dict(response.json())
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/config/custom_components/hikvision_axpro/model.py", line 989, in from_dict
list = from_list(ZoneConfListWrap.from_dict, obj.get("List"))
File "/config/custom_components/hikvision_axpro/model.py", line 29, in from_list
return [f(y) for y in x]
~^^^
File "/config/custom_components/hikvision_axpro/model.py", line 973, in from_dict
zone = ZoneConfig.from_dict(obj.get("Zone"))
File "/config/custom_components/hikvision_axpro/model.py", line 718, in from_dict
detector_type = DetectorType(obj.get("detectorType"))
File "/usr/local/lib/python3.13/enum.py", line 722, in call
return cls.new(cls, value)
~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/local/lib/python3.13/enum.py", line 1189, in new
raise ve_exc
ValueError: 'motionDetector' is not a valid DetectorType

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant