Skip to content

Commit

Permalink
correct stream type in CameraStreamInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
msp1974 committed Jul 3, 2023
1 parent f451f26 commit 35ed350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hikvision_next/isapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ async def get_camera_streams(self, channel_id: int) -> list[CameraStreamInfo]:
CameraStreamInfo(
id=int(stream_info["id"]),
name=stream_info["channelName"],
type_id=int(stream_info["id"]),
type_id=stream_type_id,
type=stream_type,
enabled=stream_info["enabled"],
codec=stream_info["Video"]["videoCodecType"],
Expand Down

0 comments on commit 35ed350

Please sign in to comment.