Skip to content

Add SmartThings Fan platform#20681

Merged
balloob merged 5 commits intohome-assistant:devfrom
andrewsayre:feature-smartthings-fan
Feb 2, 2019
Merged

Add SmartThings Fan platform#20681
balloob merged 5 commits intohome-assistant:devfrom
andrewsayre:feature-smartthings-fan

Conversation

@andrewsayre
Copy link
Copy Markdown
Member

@andrewsayre andrewsayre commented Feb 2, 2019

Description:

Adds the SmartThings Fanplatform that represents SmartThings devices that have fan-related capabilities. Highlights:

  • Supports fan speed (other fan features are not currently exposed by SmartThings)
  • Fan entities will automatically be created, but users will need to remove and reinstall the Home assistant SmartApp/Automation in the SmartThings Classic mobile app if they have previously used the component in order for the push events work (due to a new subscription that is needed).

Pull request in home-assistant.io with documentation: home-assistant/home-assistant.io#8376

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

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

If the code does not interact with devices:

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

Comment thread homeassistant/components/smartthings/fan.py Outdated
Comment thread homeassistant/components/smartthings/fan.py Outdated
Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

Looks good! Two possible clean ups.

Comment thread homeassistant/components/smartthings/fan.py
Comment thread homeassistant/components/smartthings/fan.py Outdated
@balloob balloob added this to the 0.87.0 milestone Feb 2, 2019
@balloob balloob merged commit acf5b04 into home-assistant:dev Feb 2, 2019
@ghost ghost removed the in progress label Feb 2, 2019
balloob pushed a commit that referenced this pull request Feb 2, 2019
* Add SmartThings fan

* Removed unnecessary update method

* Corrected usage of async_schedule_update_ha_state

* Clean-up/optimization
@andrewsayre andrewsayre deleted the feature-smartthings-fan branch February 2, 2019 22:45
@balloob balloob mentioned this pull request Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants