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

Synology-Chat adapter #1759

Merged
merged 9 commits into from
May 19, 2022
Merged

Synology-Chat adapter #1759

merged 9 commits into from
May 19, 2022

Conversation

phoeluga
Copy link
Contributor

@phoeluga phoeluga commented Apr 5, 2022

No description provided.

@GermanBluefox
Copy link
Contributor

Automated adapter checker

ioBroker.synochat

Downloads
NPM

👍 No errors found

  • 👀 [W400] Cannot find "synochat" in latest repository

Add comment "RE-CHECK!" to start check anew

@GermanBluefox GermanBluefox added the auto-checked This PR was automatically checked for obvious criterias label Apr 5, 2022
@ioBroker ioBroker deleted a comment from Apollon77 Apr 5, 2022
@Apollon77 Apollon77 added the REVIEW needed (apollon77) A developer from the ioBroker Team will review the adapter, will provide comments or require changes label Apr 5, 2022
@phoeluga
Copy link
Contributor Author

@Apollon77
Copy link
Collaborator

Hi,

here are some review comments:

The rest is fine. Please adjust the two topics above and poke here agin. Then we are ready to merge

@Apollon77 Apollon77 added question Something needs to be done or answered by the adapter developer must be fixed The Adapter request got review/automatic feedback that is required to be fixed before another review and removed REVIEW needed (apollon77) A developer from the ioBroker Team will review the adapter, will provide comments or require changes auto-checked This PR was automatically checked for obvious criterias labels May 16, 2022
@Apollon77
Copy link
Collaborator

PS: YOu also misses axios in your depenednecies in package.json! Anything you need and require during runtime needs to be in dependencies and not devDeps!!

@phoeluga
Copy link
Contributor Author

Hi,

Thanks for reviewing.
I adjusted the topics you mentioned accordingly.

  1. Hint of MIT license was added directly in the Readme
  2. Sorted the new synochat adapter alphabetically in the adapter list
  3. Thanks for the hint, I'll keep that in mind for an upcoming release
  4. An exception handling was added to keep a default value in case of using Nodejs 18
  5. The subscription was added after the initial connectivity check
  6. Added the missing dependencies

Please have a look again.

Thanks,
phoeluga

@Apollon77
Copy link
Collaborator

Hi,

thank you:

An exception handling was added to keep a default value in case of using Nodejs 18

The try catch will not help because it will never be an exception. the check with only be always false . maybe better to adfjust like

if ((details.family === 'IPv4' || details.family === 4)&& details.internal === false)

then you cover both.

Please release a new version to npm with the adjustments and we can merge

@phoeluga
Copy link
Contributor Author

Hi,

Thanks for the hint, got your point now.
I removed the try catch again and adjusted the check:
https://github.com/phoeluga/ioBroker.synochat/blob/master/main.js#L89

A new version was published.

@Apollon77
Copy link
Collaborator

Thank you and welcome to the repository

@Apollon77 Apollon77 merged commit 9e259bc into ioBroker:master May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
must be fixed The Adapter request got review/automatic feedback that is required to be fixed before another review question Something needs to be done or answered by the adapter developer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants