Skip to content

Commit

Permalink
Merge branch 'python_workflow' into floating_point_truncated
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Jul 26, 2021
2 parents ae44ed4 + 310afdd commit 7b8a336
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, "3.10.0-alpha.5"]
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v1
Expand Down
3 changes: 1 addition & 2 deletions pyhap/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,6 @@ async def _stop_stream(self, objs):
session_id = UUID(bytes=session_objs[SETUP_TYPES['SESSION_ID']])

session_info = self.sessions.get(session_id)
stream_idx = session_info['stream_idx']

if not session_info:
logger.error(
'Requested to stop stream for session %s, but no '
Expand All @@ -606,6 +604,7 @@ async def _stop_stream(self, objs):
)
return

stream_idx = session_info['stream_idx']
await self.stop_stream(session_info)
del self.sessions[session_id]

Expand Down

0 comments on commit 7b8a336

Please sign in to comment.