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

Store chromecast_devices as proper objects in attributes #27

Closed
wants to merge 3 commits into from

Conversation

bendikrb
Copy link
Contributor

Storing this data as a string makes it impossible to use it in templates, in other words useless in my use case - where I want to use this data to populate an input_select;

{{ states.sensor.chromecast_devices.attributes.devices_json | map(attribute='name') | list }}

@fondberg
Copy link
Owner

Thanks för your PR. För backwards compatibility it would be best if you create a new attribute to store the objects and leave this as a string.

@fondberg
Copy link
Owner

Great! I'll test and release asap

@fondberg
Copy link
Owner

Needed some more small fixes and I can't access your branch so I added your fixes in #30 so I'll be closing this and releasing that

@fondberg fondberg closed this Sep 21, 2019
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.

None yet

2 participants