Skip to content

Commit

Permalink
Update night switch mode for specific NVR and IPC models (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
FeatherKing authored May 4, 2024
1 parent 40695fc commit 583165c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/dahua/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ async def async_set_video_profile_mode(self, mode: str):
channel = self._coordinator.get_channel()
model = self._coordinator.get_model()
# Some NVRs like the Lorex DHI-NVR4108HS-8P-4KS2 change the day/night mode through a switch
if 'NVR4108HS' in model:
if 'NVR4108HS' or 'IPC-Color4K' in model:
await self._coordinator.client.async_set_night_switch_mode(channel, mode)
else:
await self._coordinator.client.async_set_video_profile_mode(channel, mode)
Expand Down

0 comments on commit 583165c

Please sign in to comment.