Skip to content

Commit

Permalink
removed designated return type for is_standby
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-Matthis committed Dec 11, 2024
1 parent fa8771e commit 9515acd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions occameracontrol/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __str__(self) -> str:
'''
return f"'{self.agent.agent_id}' @ '{self.url}'"

def is_standby(self) -> bool:
def is_standby(self):
"""Retrieve whether or not the camera is in Standby.
For Panasonic camera AW-UE70:
0 if Standby
Expand Down Expand Up @@ -113,8 +113,7 @@ def is_standby(self) -> bool:
timeout=5)
response.raise_for_status()
state = int(response.content.decode())
state = bool(state)
return state
return bool(state)

if self.type == CameraType.sony:
url = f'{self.url}/command/inquiry.cgi'
Expand Down

0 comments on commit 9515acd

Please sign in to comment.