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

Allow put as method #8004

Merged
merged 1 commit into from Jun 13, 2017
Merged

Allow put as method #8004

merged 1 commit into from Jun 13, 2017

Conversation

fabaff
Copy link
Member

@fabaff fabaff commented Jun 12, 2017

Description:

Allow put as method for the rest switch.

Related issue (if applicable): fixes 19611 & 5701

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#2803

Example entry for configuration.yaml (if applicable):

switch:
  - platform: rest
    resource: http://IP_ADDRESS/ENDPOINT
    method: put
   ...

Checklist:

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

If the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

@Odianosen25
Copy link

Hello Fabaff,

Please I am new to home assistant and having a problem I have been unable to fix for days as regards the restful switch.

I have added the switch to my configuration file, but it doesn't show up on the UI and this shows on the status "ERROR (MainThread) [homeassistant.components.switch.rest] Got non-ok response from resource: 404".

Please anyway to solve this?

Regards

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.

None yet

4 participants