10000 Fixed iTach command parsing with empty data by alanfischer · Pull Request #8104 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixed iTach command parsing with empty data #8104

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

Merged
merged 2 commits into from
Jun 20, 2017
Merged

Fixed iTach command parsing with empty data #8104

merged 2 commits into from
Jun 20, 2017

Conversation

alanfischer
Copy link
Contributor
@alanfischer alanfischer commented Jun 19, 2017

Description:

Fixes the case where an empty string would confuse any further iTach commands

Related issue (if applicable): fixes #7898

Checklist:

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass

cmddata = cmd[CONF_DATA].strip()
if not cmddata:
cmddata = '""'
cmddatas += cmdname + "\n" + cmddata + "\n"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use cmddatas += "{}\n{}\n".format(...)

@pvizeli
Copy link
Member
pvizeli commented Jun 20, 2017

you need rebase this branch

@pvizeli pvizeli added this to the 0.47.1 milestone Jun 20, 2017
@pvizeli pvizeli merged commit 4ad9983 into home-assistant:dev Jun 20, 2017
balloob pushed a commit that referenced this pull request Jun 21, 2017
* Fixed iTach command parsing with empty data

* Switched to using format
@balloob
Copy link
Member
balloob commented Jun 21, 2017

Cherry-picked for 0.47.1

@balloob balloob mentioned this pull request Jun 21, 2017
@balloob balloob mentioned this pull request Jul 1, 2017
@alanfischer alanfischer deleted the itach_fix branch July 11, 2017 13:10
dethpickle pushed a commit to dethpickle/home-assistant that referenced this pull request Aug 18, 2017
* Fixed iTach command parsing with empty data

* Switched to using format
@home-assistant home-assistant locked and limited conversation to collaborators Oct 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

itach component has strange behavior if data is an empty string
5 participants
0