Skip to content

Skip unsupported plugins instead of raising KeyError - #95

Open
atudor2 wants to merge 1 commit into
jath03:masterfrom
atudor2:dev/handle-disable-plugins
Open

atudor2 wants to merge 1 commit into
jath03:masterfrom
atudor2:dev/handle-disable-plugins

Conversation

@atudor2

@atudor2 atudor2 commented Sep 27, 2026

Copy link
Copy Markdown

I found an issue when using the OpenRGB integration via Home Assistant - if there is a disabled/unsupported plugin installed on the OpenRGB server, create_plugin() throws a KeyError due to the unconditional lookup to PLUGIN_NAMES.

In my case, the OpenRGB server returned an entirely empty plugin entry (name, description and version all empty strings) for the disabled plugin which then failed with a "KeyError: ''".

This is a small change to check if the plugin is actually supported and returns None if not

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.

1 participant