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

Add Anova integration #86254

Merged
merged 82 commits into from
Apr 22, 2023
Merged

Conversation

Lash-L
Copy link
Contributor

@Lash-L Lash-L commented Jan 19, 2023

Proposed change

Adding read only entities for Anova Sous Vides with Wifi support. Uses anova-wifi

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)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

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.
  • 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.

To help with the load of incoming pull requests:

@dshokouhi
Copy link
Member

I noticed that the docs mentioned YAML configuration. I don't think that will be accepted here per ADR 0010 integrations that communicate with a device/service should be config flow only.

@Lash-L
Copy link
Contributor Author

Lash-L commented Jan 20, 2023

I noticed that the docs mentioned YAML configuration. I don't think that will be accepted here per ADR 0010 integrations that communicate with a device/service should be config flow only.

Thanks for the heads up! I have resolved that now

@Lash-L Lash-L changed the title New Anova Sous Vide integrartion New Anova Sous Vide integration Jan 21, 2023
@home-assistant
Copy link

Hi Lash-L

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!

Copy link
Contributor

@Vaskivskyi Vaskivskyi left a comment

Choose a reason for hiding this comment

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

Hello. I have a couple of comments which might help improve the code a bit as well as the component itself

homeassistant/components/anova_sous_vide/config_flow.py Outdated Show resolved Hide resolved
homeassistant/components/anova_sous_vide/sensor.py Outdated Show resolved Hide resolved
homeassistant/components/anova_sous_vide/sensor.py Outdated Show resolved Hide resolved
@Lash-L
Copy link
Contributor Author

Lash-L commented Apr 22, 2023

Not sure why that Mariadb one keeps failing- I assume it's just the ci pipeline being weird?

@bdraco
Copy link
Member

bdraco commented Apr 22, 2023

Not sure why that Mariadb one keeps failing- I assume it's just the ci pipeline being weird?

I think I recently fixed that test. It might have just needed dev merged in

Co-authored-by: J. Nick Koston <nick@koston.org>
@bdraco bdraco added the smash Indicator this PR is close to finish for merging or closing label Apr 22, 2023
@bdraco bdraco merged commit 498e696 into home-assistant:dev Apr 22, 2023
51 checks passed
@Lash-L
Copy link
Contributor Author

Lash-L commented Apr 22, 2023

Thanks bdraco! I appreciate all your help!

joanwa pushed a commit to joanwa/home-assistant that referenced this pull request Apr 23, 2023
* init setup of Anova Sous Vide

* bump anova-wifi to 0.2.4

* Removed yaml support

* Bump to anova-wifi 0.2.5

* Added support for adding sous vide while offline

* Added basic test for sensor

* added better tests for sensors and init

* expanded code coverage

* Decreased timedelta to lowest functioning value.

* Updating my username

* migrate to async_forward_entry_setups

* applying pr recommended changes

* bump anova-wifi to 0.2.7

* Improvements to hopefully get this review ready

* formatting changes

* clean ups for pr review

* remove unneeded unique id check.

* bump ao anova_wifi 0.3.0

* rename device_id to device_unique_id

* renamed to 'anova'

* added unique_id to MockConfigEntry

* removed leftover anova sous vides

* added device id to strings

* added error for incorrect device id

* add has_entity_name

* added attr name for tests

* added authentication functionality

* bump to 0.4.3

* split entity into its own class/object

* pulling firmware version out of async_setup

Co-authored-by: J. Nick Koston <nick@koston.org>

* addressed pr changes

* fixed pytest

* added anova data model

* removed unneeded time change

* add logging in package

* rework step_user

* Update homeassistant/components/anova/sensor.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Removed lower from attr unique id

Co-authored-by: J. Nick Koston <nick@koston.org>

* Removed unneeded member variables in sensor

Co-authored-by: J. Nick Koston <nick@koston.org>

* removed repeated subclass attr

Co-authored-by: J. Nick Koston <nick@koston.org>

* simplify update_failed test

* created descriptionentity

* bump to 0.6.1 limit ws connect

* add translation for sensor entities

* version bump - support pro model

* add anova to strict typing

* fixed sensor not getting datas type

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

* Check for new devices in init

* style changes

* return false instead of config entry not ready

* move serialize_device_list to utils

* move repeating device check into api

* moved unneeded code out of try except

* fixed tests to get 100% cov

* Update homeassistant/components/anova/strings.json

Co-authored-by: J. Nick Koston <nick@koston.org>

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed has-tests integration: anova_sous_vide new-integration smash Indicator this PR is close to finish for merging or closing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants