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

Commit

Permalink
Merge pull request #160 from robmarkcole/drop-unit-of-measurement
Browse files Browse the repository at this point in the history
Drop unit of measurement targets and tidies attributes
  • Loading branch information
robmarkcole authored Dec 21, 2020
2 parents 3c3635d + 331a753 commit d53c41d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions custom_components/deepstack_object/image_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,6 @@ def name(self):
"""Return the name of the sensor."""
return self._name

@property
def unit_of_measurement(self):
"""Return the unit of measurement."""
return "targets"

@property
def should_poll(self):
"""Return the polling state."""
Expand All @@ -328,7 +323,6 @@ def device_state_attributes(self):
attr["custom_model"] = self._custom_model
attr["targets"] = self._targets
attr["summary"] = self._summary
attr["objects"] = self._objects
return attr

def save_image(self, image, targets, confidence, directory):
Expand Down
Binary file modified docs/object_detail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/object_usage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d53c41d

Please sign in to comment.