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

Failure to setup integration if device is not turned on. #116

Closed
BottlecapDave opened this issue Jul 15, 2023 · 3 comments
Closed

Failure to setup integration if device is not turned on. #116

BottlecapDave opened this issue Jul 15, 2023 · 3 comments

Comments

@BottlecapDave
Copy link

I have the following configuration

platform: linkplay
uuid: !secret office_speaker_uuid
host: !secret office_speaker_ip
name: Office
icecast_metadata: 'StationNameSongTitle'
multiroom_wifidirect: False
sources: {}

If I restart my HA instance with the device turned off, then the integration fails to setup the entity. It's failing at line 273 of media_player.py stating that response.status is not allowed because response is None. I've fixed this in my local instance and happy to raise an MR which changes this line from

response.status,

to

response.status if response is not None else "UNKNOWN",
@nagyrobi
Copy link
Owner

Please make a pull request.

@BottlecapDave
Copy link
Author

I've raised #117 to fix the issue as specified.

@nagyrobi
Copy link
Owner

Thanks, merged #117

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

No branches or pull requests

2 participants