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

Only report supported hvac_modes and fan_modes #49

Merged
merged 1 commit into from
May 11, 2020

Conversation

ticky
Copy link
Contributor

@ticky ticky commented May 10, 2020

This updates climate.py to report the capabilities reported by the Smartthinq model information.

Our LP1419IVSM only supports cool, fan_only and dry hvac_modes, and the presence of auto would cause hass-smartthinq to set the temperature to the minimum whenever it's activated.

This updates it to filter the hvac_modes to only those which are listed in the device's SupportOpMode list, and to filter fan_modes to only those listed in the device's SupportWindStrength list.

This updates climate.py to report the capabilities reported by the Smartthinq model information.

Our LP1419IVSM only supports `cool`, `fan_only` and `dry` `hvac_modes`, and the presence of `auto` would cause hass-smartthinq to set the temperature to the minimum whenever it's activated.

This updates it to filter the `hvac_modes` to only those which are listed in the device's SupportOpMode list, and to filter `fan_modes` to only those listed in the device's SupportWindStrength list.
Copy link
Owner

@sampsyo sampsyo left a comment

Choose a reason for hiding this comment

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

This is great; thanks yet again!! I have also been wanting my entity to only reflect what is actually available, and this is the perfect way to do it. Wahoo!

@sampsyo sampsyo merged commit 2659a67 into sampsyo:master May 11, 2020
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