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

corr-252 #255

Merged
merged 14 commits into from
Oct 27, 2021
Merged

corr-252 #255

merged 14 commits into from
Oct 27, 2021

Conversation

fcusson
Copy link
Collaborator

@fcusson fcusson commented Sep 24, 2021

Potential fix for #252.

I have added the method helpers.get_spotify_install_status() that returns True if entities linked to the Spotify platform where found and false otherwise (more specifically, it returns fall if the number of elements in the list of entities of the platform is 0[zero]).

In __init__.setup() I added a check at the starts that compares the return of the methods and if false, send an error log and returns false to the setup effectively aborting it.

I did the following test:

Test Result
Reboot server with a check toward platform "spotify" Setup ran successfully
Reboot server with a check toward platform "spotifi" Setup aborted
Regression: used spotcast.start Ran successfully

The only test I couldn't do now was testing on a machine without the Spotify Integration, but I simulated it by pointing toward a wrongly typed platform to simulate the absence of the integration.

@fcusson fcusson requested a review from fondberg September 24, 2021 17:44
Copy link
Owner

@fondberg fondberg left a comment

Choose a reason for hiding this comment

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

Great! Release it when you want

@fcusson
Copy link
Collaborator Author

fcusson commented Oct 27, 2021

made the make bump

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.

2 participants