Skip to content

Conversation

@Lash-L
Copy link
Collaborator

@Lash-L Lash-L commented Mar 1, 2023

Super basic test so far, but it is a basis to build on.

Also added ci pipeline so that when a PR gets made or code is pushed into dev it will run all of the test, to make sure there's never an error introduced like I did with the circular dependency.

I can also add a ci task to automatically release a new version on pypi on dev push if that is something you are interested in.

You will have to enable Actions on github if this is something you want

This also caught that Python 3.9 is not supported(which doesn't matter as HA only allows for 3.10 and above

Comment on lines +75 to +76
# status = device.device_status
# assert status.name ==
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

device_status is not actually correct. The parameters for it are completely different than what the api returns. I don't think it used anywhere, but I noticed it from the test so I figured I would share.

@Lash-L
Copy link
Collaborator Author

Lash-L commented Mar 1, 2023

@humbertogontijo Let me know when you end up pushing the new version to pypi. Alternatively, let me know if you want my help automating it with ci/cd

@Lash-L
Copy link
Collaborator Author

Lash-L commented Mar 5, 2023

@humbertogontijo ill have some time to work on this today, do you think you'll have a chance to publish to pypi?

@humbertogontijo humbertogontijo merged commit b77aa54 into Python-roborock:main Mar 9, 2023
@Lash-L
Copy link
Collaborator Author

Lash-L commented Mar 9, 2023

@humbertogontijo Thanks for merging and pushing to pypi! I'm going to create the HA PRs shortly.

Let me know if you have any questions. I marked you as a codeowner.

feel free to email me conway220@gmail.com if you have any questions.

@humbertogontijo
Copy link
Collaborator

Hey! Thank you for your effort.
I'm so sorry for the delay reviewing your changes, I'm currently short in time for hobbies repositories, but I'll do my best to keep up to date with the roborock integration.

Thanks again for all your help

@humbertogontijo
Copy link
Collaborator

Ah, send me the link for your PR to HA core when you have it please

@Lash-L
Copy link
Collaborator Author

Lash-L commented Mar 10, 2023

@humbertogontijo no worries, I completely get it.
Here's the PR!

home-assistant/core#89456

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants