Skip to content

Fix uncaught exceptions in ios#34119

Merged
MartinHjelmare merged 5 commits intohome-assistant:devfrom
ziv1234:fix23
Apr 17, 2020
Merged

Fix uncaught exceptions in ios#34119
MartinHjelmare merged 5 commits intohome-assistant:devfrom
ziv1234:fix23

Conversation

@ziv1234
Copy link
Copy Markdown
Contributor

@ziv1234 ziv1234 commented Apr 12, 2020

Breaking change

not breaking

Proposed change

moved the dependency on notify to manifest.json
it was throwing an exception of empty config and i suspect that it
would also happen in real life, so dependency seems a better way

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example entry for configuration.yaml:

# Example configuration.yaml

Additional information

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

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.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

  • No score or internal
  • 🥈 Silver
  • 🥇 Gold
  • 🏆 Platinum

@probot-home-assistant
Copy link
Copy Markdown

Hey there @robbiet480, mind taking a look at this pull request as its been labeled with a integration (ios) you are listed as a codeowner for? Thanks!

@springstan springstan changed the title Fixed uncaught exceptions in ios Fix uncaught exceptions in ios Apr 12, 2020
Comment thread homeassistant/components/ios/__init__.py
Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

I don't think this is the right solution.

Comment thread homeassistant/components/ios/manifest.json Outdated
@ziv1234
Copy link
Copy Markdown
Contributor Author

ziv1234 commented Apr 15, 2020

ok. made much more simple changes. simply added something to the config. much more straightforward now...

thanks for the help

Comment thread tests/components/ios/test_init.py Outdated
Comment thread tests/components/ios/test_init.py Outdated
ziv1234 and others added 3 commits April 16, 2020 21:30
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

Looks good!

@ziv1234
Copy link
Copy Markdown
Contributor Author

ziv1234 commented Apr 16, 2020

thanks! one more exception and my project is done...

@MartinHjelmare MartinHjelmare merged commit a2b280f into home-assistant:dev Apr 17, 2020
@lock lock Bot locked and limited conversation to collaborators Apr 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix ios tests that have uncaught exceptions

5 participants