Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix day/night mode switch #370

Merged
merged 2 commits into from
Jul 8, 2024
Merged

Fix day/night mode switch #370

merged 2 commits into from
Jul 8, 2024

Conversation

hawkeye217
Copy link
Contributor

I had recently updated my integrations and noticed that my day/night mode was no longer working. I traced it to a bug that was introduced in #327 - Non-empty Python strings are always truthy, so this statement always evaluates to True:

if 'NVR4108HS' or 'IPC-Color4K' in model:

This PR correctly searches the model string and uses an array to make it easier to add more models in the future.

Copy link
Owner

@rroller rroller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! And thanks for your work on Frigate!

@rroller rroller merged commit 8cffd43 into rroller:main Jul 8, 2024
1 of 3 checks passed
@rroller
Copy link
Owner

rroller commented Jul 9, 2024

@jakeycrx
Copy link

My Dahua camera always returns a 401 with a RESTful command Is there any workaround for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants