Skip to content

Commit

Permalink
fix MaxExtraStream (#286)
Browse files Browse the repository at this point in the history
Thanks!
  • Loading branch information
si458 authored Nov 10, 2023
1 parent 2257928 commit c6a2603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/dahua/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async def get_max_extra_streams(self) -> int:
""" get_max_extra_streams returns the max number of sub streams supported by the camera """
try:
result = await self.get("/cgi-bin/magicBox.cgi?action=getProductDefinition&name=MaxExtraStream")
return int(result.get("table.MaxExtraStreams", "2"))
return int(result.get("table.MaxExtraStream", "2"))
except aiohttp.ClientResponseError as e:
pass
# If we can't fetch, just assume 2 since that's pretty standard
Expand Down

0 comments on commit c6a2603

Please sign in to comment.