Skip to content

Add preset mode eco to Generic Thermostat#61366

Closed
Tygozwolle wants to merge 1 commit intohome-assistant:devfrom
Tygozwolle:patch-1
Closed

Add preset mode eco to Generic Thermostat#61366
Tygozwolle wants to merge 1 commit intohome-assistant:devfrom
Tygozwolle:patch-1

Conversation

@Tygozwolle
Copy link
Copy Markdown

@Tygozwolle Tygozwolle commented Dec 9, 2021

add preset mode eco

-->

Proposed change

i added preset mode eco

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

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.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
  • Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

  • No score or internal
  • 🥈 Silver
  • 🥇 Gold
  • 🏆 Platinum

To help with the load of incoming pull requests:

add preset mode eco
@homeassistant
Copy link
Copy Markdown
Contributor

Hi @Tygozwolle,

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!

@Tygozwolle Tygozwolle changed the title Update climate.py add preset mode eco to Generic Thermostat Dec 9, 2021
@MartinHjelmare MartinHjelmare changed the title add preset mode eco to Generic Thermostat Add preset mode eco to Generic Thermostat Dec 9, 2021
self._target_temp = self._saved_target_temp
await self._async_control_heating(force=True)

elif self._attr_preset_mode = PRESET_ECO
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This elif is not like the others, is this correct?

self._support_flags = SUPPORT_FLAGS | SUPPORT_PRESET_MODE
self._attr_preset_modes = [PRESET_NONE, PRESET_AWAY]
self._attr_preset_modes = [PRESET_NONE, PRESET_AWAY, PRESET_ECO]
else:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remove empty line

@@ -85,6 +87,7 @@
[HVAC_MODE_COOL, HVAC_MODE_HEAT, HVAC_MODE_OFF]
),
vol.Optional(CONF_AWAY_TEMP): vol.Coerce(float),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Indent

@Misiu
Copy link
Copy Markdown
Contributor

Misiu commented Dec 21, 2021

Take a look at #56080, it just got approved.

@ihrapsa
Copy link
Copy Markdown

ihrapsa commented Jan 25, 2022

Take a look at #56080, it just got approved.

Apparently eco and boost modes were dropped.
See here

@Tygozwolle Tygozwolle closed this Feb 3, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2022
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.

5 participants