Skip to content
This repository was archived by the owner on Mar 19, 2023. It is now read-only.
This repository was archived by the owner on Mar 19, 2023. It is now read-only.

Error in log after image_processing.scan. Scan fails. #1

@aptonline

Description

@aptonline

Just setup scene in 0.110.0 and getting the following error:

Log Details (ERROR)
Logger: homeassistant.helpers.entity
Source: custom_components/deepstack_scene/image_processing.py:88 
First occurred: 11:36:06 (1 occurrences) 
Last logged: 11:36:06

Update for image_processing.deepstack_scene_front_of_house fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
    await self.async_update()
  File "/usr/src/homeassistant/homeassistant/components/image_processing/__init__.py", line 132, in async_update
    await self.async_process_image(image.content)
  File "/usr/src/homeassistant/homeassistant/components/image_processing/__init__.py", line 112, in async_process_image
    return await self.hass.async_add_job(self.process_image, image)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/deepstack_scene/image_processing.py", line 88, in process_image
    self._dsscene.detect(image)
  File "/usr/local/lib/python3.7/site-packages/deepstack/core.py", line 132, in detect
    raise DeepstackException(f"Error from Deepstack: {error}")
NameError: name 'error' is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions