Skip to content

Bug fix for clicksend#17713

Merged
Danielhiversen merged 3 commits intohome-assistant:devfrom
JaxomCS:patch-2
Oct 23, 2018
Merged

Bug fix for clicksend#17713
Danielhiversen merged 3 commits intohome-assistant:devfrom
JaxomCS:patch-2

Conversation

@JaxomCS
Copy link
Copy Markdown
Contributor

@JaxomCS JaxomCS commented Oct 23, 2018

Current version causes 500 error since it is sending an array of from numbers to ClickSend. Changing the from number to 'hass' identifies all messages as coming from Home Assistant making them more recognisable and removes the bug.

Description:

Related issue (if applicable): fixes #

Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>

Checklist:

  • [✓] The code change is tested and works locally.
  • [✓] Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

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

  • [✓] New dependencies have been added to the REQUIREMENTS variable (example).
  • [✓] New dependencies are only imported inside functions that use them (example).
  • [✓] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • [✓] New files were added to .coveragerc.

If the code does not interact with devices:

  • [✓] Tests have been added to verify that the new code works.

Current version causes 500 error since it is sending an array of from numbers to ClickSend. Changing the from number to 'hass' identifies all messages as coming from Home Assistant making them more recognisable and removes the bug.
@ghost ghost added the in progress label Oct 23, 2018
@Danielhiversen Danielhiversen mentioned this pull request Oct 23, 2018
@Danielhiversen
Copy link
Copy Markdown
Member

Danielhiversen commented Oct 23, 2018

You also have to remove sender from the config and update the documentation.
A better solution would be to update validate_sender to make sure the sender is valid

@Danielhiversen Danielhiversen changed the title Bug fix Bug fix for clicksend Oct 23, 2018
Changed it to use 'hass' as the default instead of defaulting to the recipient which is the array. Would have worked if users set their own name but users who were using the default were experiencing the issue.
@JaxomCS
Copy link
Copy Markdown
Contributor Author

JaxomCS commented Oct 23, 2018

Made changes to documentation home-assistant/home-assistant.io#7029

Copy link
Copy Markdown
Member

@Danielhiversen Danielhiversen left a comment

Choose a reason for hiding this comment

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

Thanks, just a minor comment

@balloob balloob added this to the 0.81 milestone Oct 23, 2018
@balloob
Copy link
Copy Markdown
Member

balloob commented Oct 23, 2018

Is it really a breaking change if the current integration does not work?

Tagged it for 81 so it can go out on Friday.

@Danielhiversen
Copy link
Copy Markdown
Member

I have already removed the breaking change label

@Danielhiversen Danielhiversen merged commit 44e35b7 into home-assistant:dev Oct 23, 2018
@ghost ghost removed the in progress label Oct 23, 2018
balloob pushed a commit that referenced this pull request Oct 23, 2018
* Bug fix

Current version causes 500 error since it is sending an array of from numbers to ClickSend. Changing the from number to 'hass' identifies all messages as coming from Home Assistant making them more recognisable and removes the bug.

* Amendment

Changed it to use 'hass' as the default instead of defaulting to the recipient which is the array. Would have worked if users set their own name but users who were using the default were experiencing the issue.

* Added DEFAULT_SENDER variable
@balloob balloob mentioned this pull request Oct 26, 2018
iantrich pushed a commit to iantrich/home-assistant that referenced this pull request Oct 27, 2018
* Bug fix

Current version causes 500 error since it is sending an array of from numbers to ClickSend. Changing the from number to 'hass' identifies all messages as coming from Home Assistant making them more recognisable and removes the bug.

* Amendment

Changed it to use 'hass' as the default instead of defaulting to the recipient which is the array. Would have worked if users set their own name but users who were using the default were experiencing the issue.

* Added DEFAULT_SENDER variable
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019
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.

5 participants