Villhellm / custom-sidebar

Custom Sidebar for Home Assistant
115 stars 23 forks source link

Fix error for new_item in non-English config #11

Closed C0ntroller closed 4 years ago

C0ntroller commented 4 years ago

The way the function getConfigurationElement searches for the configuration-element is broken in any non-English HAss (as the element is not called "Configuration"). The easiest way to fix this is by searching for the attribute data-panel rather than string.

Villhellm commented 4 years ago

Thank you for the contribution! The 'new item' feature was made in a bit of a hurry, so I figured I missed something obvious. Thanks for catching the mistake