diff --git a/custom_components/hikvision_next/isapi.py b/custom_components/hikvision_next/isapi.py index 0ea04af..d69daf9 100644 --- a/custom_components/hikvision_next/isapi.py +++ b/custom_components/hikvision_next/isapi.py @@ -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"],