Add return checker, needed 4 fixes
This commit is contained in:
parent
3f0564f253
commit
2050c2dc7c
5 changed files with 14 additions and 23 deletions
|
|
@ -23,8 +23,7 @@ class BackgroundDetectThing(Thing):
|
|||
bd = self.thing_settings.get("background_distributions", None)
|
||||
if bd:
|
||||
return ChannelDistributions(**bd)
|
||||
else:
|
||||
return None
|
||||
return None
|
||||
|
||||
@background_distributions.setter
|
||||
def background_distributions(self, value: Optional[ChannelDistributions]) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue