elad-bar / ha-shinobi

Shinobi Video custom component for HA
53 stars 5 forks source link

ValueError: invalid literal for int() with base 10: '' #6

Closed magnushasselquist closed 3 years ago

magnushasselquist commented 3 years ago

The plugin is not starting, Home assistant logs this:

Logger: homeassistant Source: custom_components/shinobi/models/camera_data.py:25 Integration: Shinobi Video NVR (documentation, issues)

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/shinobi/managers/home_assistant.py", line 146, in _async_init await self.async_update_entry() File "/config/custom_components/shinobi/managers/home_assistant.py", line 180, in async_update_entry await self.api.async_update() File "/config/custom_components/shinobi/api/shinobi_api.py", line 161, in async_update await self.load_camera() File "/config/custom_components/shinobi/api/shinobi_api.py", line 240, in load_camera camera = CameraData(monitor) File "/config/custom_components/shinobi/models/camera_data.py", line 25, in init self.fps = int(monitor_details.get(ATTR_CAMERA_DETAILS_FPS, "1")) ValueError: invalid literal for int() with base 10: ''

It sounds like I am missing something in the camera configuration in Shinobi? Please assist!

/Magnus