Skip to content

Add multi-type support to set_preference#31

Merged
freekode merged 1 commit into
pschmitt:masterfrom
shenxn:multi-type-preference
Apr 17, 2020
Merged

Add multi-type support to set_preference#31
freekode merged 1 commit into
pschmitt:masterfrom
shenxn:multi-type-preference

Conversation

@shenxn
Copy link
Copy Markdown

@shenxn shenxn commented Apr 17, 2020

I'm working on PR 33616 of home assistant. Currently the set_preference function only support boolean strings as the value of setting. This PR fixes the problem so that setting can be other types like integers or dictionaries so that I can hide protocol details from Home Assistant.

@freekode
Copy link
Copy Markdown
Collaborator

yeah, this thing kinda silly, dunno why it received only strings.
anyway, looks good 👍

@freekode freekode merged commit 1369be6 into pschmitt:master Apr 17, 2020
@shenxn shenxn deleted the multi-type-preference branch April 17, 2020 07:41
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.

2 participants