Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Remove broken GDMDiscoverable.info_from_entry#209

Merged
balloob merged 1 commit intohome-assistant-libs:masterfrom
scop:gdm-info
Sep 19, 2018
Merged

Remove broken GDMDiscoverable.info_from_entry#209
balloob merged 1 commit intohome-assistant-libs:masterfrom
scop:gdm-info

Conversation

@scop
Copy link
Copy Markdown
Contributor

@scop scop commented Aug 31, 2018

Another thing found while working on typing stuff. I have no way to test this, but while I believe this is correct in principle, it may also not solve the issue entirely it seems to me the dict may not always contain the accessed keys. In particular, is there a location key in the first place, or should Host be used instead? And isn't the other Port instead of port?

@balloob
Copy link
Copy Markdown
Contributor

balloob commented Aug 31, 2018

Well, if it ain't broken, don't fix it 😉

@scop
Copy link
Copy Markdown
Contributor Author

scop commented Aug 31, 2018

The typing changes I've made will show that this is indeed broken, I'm just not sure what the complete correct fix would me. Would you prefer me to submit the typing stuff that demonstrates the breakage first?

@balloob
Copy link
Copy Markdown
Contributor

balloob commented Aug 31, 2018

GDM is used for Plex right? Although it does indeed look wrong (it's a dictionary and that's not how values are extracted), I think it works? 🤔

@balloob
Copy link
Copy Markdown
Contributor

balloob commented Aug 31, 2018

Ah, so just Plex uses it and Plex has implemented their own info_from_entry method. That's why. I think that we should just remove the method completely.

@scop
Copy link
Copy Markdown
Contributor Author

scop commented Sep 3, 2018

I can modify this PR to remove the method if you like, but I have nothing to actually test this stuff with.

@balloob
Copy link
Copy Markdown
Contributor

balloob commented Sep 3, 2018

I would just remove it. It's not used and we wouldn't want to test it. GDM is a Plex specific discovery protocol 🤦‍♂️

@scop scop changed the title Make GDMDiscoverable.info_from_entry more likely to work Remove broken GDMDiscoverable.info_from_entry Sep 7, 2018
@balloob balloob merged commit b1c524a into home-assistant-libs:master Sep 19, 2018
@scop scop deleted the gdm-info branch September 29, 2018 20:45
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.

3 participants