Skip to content

Fix problem with cameras that don't support time#23924

Merged
balloob merged 1 commit into
home-assistant:devfrom
karlkar:patch-2
May 17, 2019
Merged

Fix problem with cameras that don't support time#23924
balloob merged 1 commit into
home-assistant:devfrom
karlkar:patch-2

Conversation

@karlkar
Copy link
Copy Markdown
Contributor

@karlkar karlkar commented May 16, 2019

Description:

Some onvif cameras don't support Date management. In that case None is returned and script crashes when trying to obtain date

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

Some onvif cameras don't support Date management. In that case None is returned and script crashes when trying to obtain date
@homeassistant homeassistant added integration: onvif merging-to-master This PR is merging into the master branch and should probably change the branch to `dev`. small-pr PRs with less than 30 lines. cla-signed labels May 16, 2019
@bachya
Copy link
Copy Markdown
Contributor

bachya commented May 17, 2019

Make sure you are basing your PR against dev, not master.

@balloob balloob changed the base branch from master to dev May 17, 2019 04:28
@balloob balloob removed the merging-to-master This PR is merging into the master branch and should probably change the branch to `dev`. label May 17, 2019
@balloob balloob added this to the 0.93.1 milestone May 17, 2019
@balloob balloob merged commit edf34ee into home-assistant:dev May 17, 2019
balloob pushed a commit that referenced this pull request May 17, 2019
Some onvif cameras don't support Date management. In that case None is returned and script crashes when trying to obtain date
@balloob balloob mentioned this pull request May 17, 2019
@twproject
Copy link
Copy Markdown

I have a similar issue after upgrade to 0.93 and 0.93.1 too. My old onvif cameras crashes if i configure them on HA. With 0.92 everything worked fine.

@MartinHjelmare
Copy link
Copy Markdown
Member

Please open an issue if you suspect a bug. If you need help please use our help channels:
https://home-assistant.io/help/#communication-channels

Merged PRs should not be used for support or bug reports. Thanks!

@home-assistant home-assistant locked as resolved and limited conversation to collaborators May 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants