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

Change radiotherm state attributes #15031

Merged
merged 1 commit into from
Sep 7, 2018
Merged

Change radiotherm state attributes #15031

merged 1 commit into from
Sep 7, 2018

Conversation

cpw
Copy link
Contributor

@cpw cpw commented Jun 18, 2018

Description:

The two device_state_attributes don't return the current actual state (fan on/off, heat/cool), but rather the mode of the fan or thermostat (generally auto). As such this change makes the actual current state visible to the system, so you can do stuff when the fan turns on, for example. I suspect this is just a bug, but maybe it was intended NOT to be able to see the actual fan state?

Breaking change:
The radiotherm fan and mode state attributes were updated to reflect the real-time fan and mode states of the thermostat, rather than the overall selected state (automatic, mostly). The mode attributes still contain the selected modes (fan on/auto, heat/cool/auto).

Related issue (if applicable): fixes #

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

Example entry for configuration.yaml (if applicable):

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.

the two device_state_attributes don't return the current actual state (fan on/off, heat/cool), but rather the mode of the fan or thermostat (generally auto). As such this change makes the actual current state visible to the system, so you can do stuff when the fan turns on, for example. I suspect this is just a bug, but maybe it was intended NOT to be able to see the actual fan state?
@homeassistant
Copy link
Contributor

Hi @cpw,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@homeassistant homeassistant added cla-needed merging-to-master This PR is merging into the RC branch and should probably change the branch to `dev`. platform: climate.radiotherm small-pr PRs with less than 30 lines. labels Jun 18, 2018
@ghost ghost added the in progress label Jun 18, 2018
@awarecan
Copy link
Contributor

@cpw you should merge to dev branch, not master.

@cpw
Copy link
Contributor Author

cpw commented Jun 18, 2018

Sorry, the PR was automatically generated by github. I think I fixed it, by retargetting what github generated?

@cpw cpw changed the base branch from master to dev June 18, 2018 19:41
@fabaff fabaff removed the merging-to-master This PR is merging into the RC branch and should probably change the branch to `dev`. label Jun 19, 2018
@MartinHjelmare
Copy link
Member

Please add a paragraph in the description about the breaking change, for the release notes.

@MartinHjelmare MartinHjelmare changed the title Update radiotherm Change radiotherm state attributes Jun 22, 2018
@cpw
Copy link
Contributor Author

cpw commented Jun 23, 2018

This is a breaking change?

The two state attributes were just duplicating the "selected mode" (fan on all the time or automatic and heat/cool/auto selected) previously.

This "fix" actually reports the real state of the thermostat instead: so fan on when it's running (off when not) and cool/heat/idle when it's cooling/heating or idle.
It's a breaking change if you expected the mode data in the state attributes I suppose, but it wasn't very useful as the mode attributes already told you that. /shrug.

@fabaff fabaff merged commit 80c77b8 into home-assistant:dev Sep 7, 2018
@ghost ghost removed the in progress label Sep 7, 2018
@balloob balloob mentioned this pull request Sep 17, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Dec 10, 2018
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

5 participants