Skip to content

Fix netatmo device unavailable and services#33509

Merged
MartinHjelmare merged 8 commits intohome-assistant:devfrom
cgtobi:netatmo_climate_bugfix
Apr 2, 2020
Merged

Fix netatmo device unavailable and services#33509
MartinHjelmare merged 8 commits intohome-assistant:devfrom
cgtobi:netatmo_climate_bugfix

Conversation

@cgtobi
Copy link
Copy Markdown
Contributor

@cgtobi cgtobi commented Apr 1, 2020

Breaking change

Proposed change

This will set the entity as unavailable when errors occur that imply that the device is out of reach or its batteries died.
It also fixes an issue with turn_on/off services not working correctly. Since valves can't be turned off they will be set to the lowest setting.

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

Example entry for configuration.yaml:

# Example configuration.yaml

Additional information

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.
  • Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

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

@cgtobi cgtobi force-pushed the netatmo_climate_bugfix branch from f494d81 to 828c77c Compare April 1, 2020 21:30
@cgtobi cgtobi marked this pull request as ready for review April 1, 2020 21:30
@MartinHjelmare MartinHjelmare changed the title Netatmo climate bugfix Fix netatmo device unavailable and services Apr 2, 2020
Comment thread homeassistant/components/netatmo/climate.py Outdated
Comment thread homeassistant/components/netatmo/climate.py Outdated
Comment thread homeassistant/components/netatmo/climate.py Outdated
Comment thread homeassistant/components/netatmo/climate.py Outdated
Comment thread homeassistant/components/netatmo/climate.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!

@MartinHjelmare MartinHjelmare added this to the 0.108.0 milestone Apr 2, 2020
@MartinHjelmare
Copy link
Copy Markdown
Member

Test failures are unrelated (tts). Merging.

@MartinHjelmare MartinHjelmare merged commit 23e0916 into home-assistant:dev Apr 2, 2020
@cgtobi cgtobi deleted the netatmo_climate_bugfix branch April 2, 2020 15:38
balloob pushed a commit that referenced this pull request Apr 3, 2020
* Handle unavailabe entities

* Remove some logging

* Set valve to lowest temp when turned off

* Remove some logging

* Address comments

* Report entity as connected if update is successful

* Fix stupidness

* Fix
@lock lock Bot locked and limited conversation to collaborators Apr 4, 2020
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.

Netatmo on off on wrong state Netatmo valves do not go into "unavailable" state

4 participants