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

KNX: Migrate climate component to new climate platform #24931

Merged
merged 4 commits into from
Jul 3, 2019
Merged

KNX: Migrate climate component to new climate platform #24931

merged 4 commits into from
Jul 3, 2019

Conversation

marvin-w
Copy link
Contributor

@marvin-w marvin-w commented Jul 3, 2019

Breaking Change:

Migrate knx climate component to new climate platform.

Description:

I tried to follow the PR description as much as possible.

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.
  • I have followed the development checklist

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

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

  • The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

If the code does not interact with devices:

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

@ghost
Copy link

ghost commented Jul 3, 2019

Hey there @Julius2342, mind taking a look at this pull request as its been labeled with a integration (knx) you are listed as a codeowner for? Thanks!

This is a automatic comment generated by codeowners-mention to help ensure issues and pull requests are seen by the right people.

@marvin-w marvin-w changed the title Migrate climate component KNX: Migrate climate component to new climate platform Jul 3, 2019
@marvin-w marvin-w mentioned this pull request Jul 3, 2019
59 tasks
Copy link
Member

@balloob balloob left a comment

Choose a reason for hiding this comment

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

🎉

@balloob balloob merged commit ce3dc7a into home-assistant:climate-1.0 Jul 3, 2019
self.device.mode.operation_modes]

if self.device.supports_on_off:
_operations[HVAC_MODE_HEAT] = HVAC_MODE_HEAT
Copy link
Member

Choose a reason for hiding this comment

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

_operations is a list, right? What do we want to do here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

_operations[HVAC_MODE_HEAT] = HVAC_MODE_HEAT
_operations[HVAC_MODE_OFF] = HVAC_MODE_OFF

return list(filter(None, _operations))
Copy link
Member

Choose a reason for hiding this comment

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

We prefer list comprehension without using filter.

return [op for op in _operations if op is not None]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lock lock bot locked and limited conversation to collaborators Jul 6, 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.

4 participants