Strip attributes whitespace in universal media_player (#54451)
Strip attributes whitespace in universal media_player (#54451)

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
FreekingDean/home-assistant,toddeye/home-assistant,mezz64/home-assistant,home-assistant/home-assistant,w1ll1am23/home-assistant,Danielhiversen/home-assistant,GenericStudent/home-assistant,nkgilley/home-assistant,rohitranjan1991/home-assistant,jawilson/home-assistant,Danielhiversen/home-assistant,jawilson/home-assistant,sander76/home-assistant,nkgilley/home-assistant,sander76/home-assistant,FreekingDean/home-assistant,aronsky/home-assistant,home-assistant/home-assistant,aronsky/home-assistant,lukas-hetzenecker/home-assistant,rohitranjan1991/home-assistant,toddeye/home-assistant,mezz64/home-assistant,GenericStudent/home-assistant,rohitranjan1991/home-assistant,w1ll1am23/home-assistant,lukas-hetzenecker/home-assistant