Skip to content

Commit c6a2603

Browse files
authored
fix MaxExtraStream (#286)
Thanks!
1 parent 2257928 commit c6a2603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: custom_components/dahua/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ async def get_max_extra_streams(self) -> int:
139139
""" get_max_extra_streams returns the max number of sub streams supported by the camera """
140140
try:
141141
result = await self.get("/cgi-bin/magicBox.cgi?action=getProductDefinition&name=MaxExtraStream")
142-
return int(result.get("table.MaxExtraStreams", "2"))
142+
return int(result.get("table.MaxExtraStream", "2"))
143143
except aiohttp.ClientResponseError as e:
144144
pass
145145
# If we can't fetch, just assume 2 since that's pretty standard

0 commit comments

Comments
 (0)