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

Universal Media Player does not remove white space after splitting attributes #53804

Closed
0xFelix opened this issue Jul 31, 2021 · 1 comment · Fixed by #54451
Closed

Universal Media Player does not remove white space after splitting attributes #53804

0xFelix opened this issue Jul 31, 2021 · 1 comment · Fixed by #54451

Comments

@0xFelix
Copy link
Contributor

0xFelix commented Jul 31, 2021

The problem

Universal media player can use state attributes of other entities for its own attributes.

These can be specified as following:
entity_id|state_attribute

When using white space in this definition the lookup of the state attribute fails as an entity with white space in its name cannot be found.

E.g. does not work:
entity_id | state_attribute

After splitting the attributes value white space should be stripped for both strings in the attr list.

What is version of Home Assistant Core has the issue?

core-2021.7.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Universal Media Player

Link to integration documentation on our website

https://www.home-assistant.io/integrations/universal/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@probot-home-assistant
Copy link

universal documentation
universal source
(message by IssueLinks)

MartinHjelmare pushed a commit that referenced this issue Aug 11, 2021
When using whitespace in attributes the lookup of the state attribute fails because an entity with whitespace in its name cannot be found.

Works:
entity_id|state_attribute

Does not work:
entity_id | state_attribute

Fixes #53804
balloob pushed a commit that referenced this issue Aug 16, 2021
When using whitespace in attributes the lookup of the state attribute fails because an entity with whitespace in its name cannot be found.

Works:
entity_id|state_attribute

Does not work:
entity_id | state_attribute

Fixes #53804
@github-actions github-actions bot locked and limited conversation to collaborators Sep 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant