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 Binary Sensor platform to Tessie #105421

Merged
merged 18 commits into from
Dec 16, 2023
Merged

Conversation

Bre77
Copy link
Contributor

@Bre77 Bre77 commented Dec 9, 2023

Breaking change

Proposed change

Add Binary Sensor platform to Tessie

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
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format 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:

Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

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

@Bre77 Bre77 changed the title Tessie binary Add Binary Sensor platform to Tessie Dec 9, 2023
@Bre77 Bre77 marked this pull request as ready for review December 9, 2023 23:37
@Bre77 Bre77 marked this pull request as draft December 10, 2023 00:44
@Bre77 Bre77 marked this pull request as ready for review December 10, 2023 00:44
homeassistant/components/tessie/__init__.py Outdated Show resolved Hide resolved
homeassistant/components/tessie/binary_sensor.py Outdated Show resolved Hide resolved
homeassistant/components/tessie/entity.py Outdated Show resolved Hide resolved
homeassistant/components/tessie/binary_sensor.py Outdated Show resolved Hide resolved
homeassistant/components/tessie/strings.json Outdated Show resolved Hide resolved
@home-assistant home-assistant bot marked this pull request as draft December 10, 2023 00:47
@home-assistant
Copy link

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

Copy link
Member

@bdraco bdraco left a comment

Choose a reason for hiding this comment

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

Please remove the unrelated commits from this PR

git checkout -b tessie-binary_squashed
git merge upstream/dev
git reset --soft upstream/dev
git commit -a -m'Add Binary Sensor platform to Tessie'

@home-assistant home-assistant bot marked this pull request as draft December 12, 2023 04:43
@Bre77 Bre77 marked this pull request as ready for review December 12, 2023 05:05
@home-assistant home-assistant bot requested a review from bdraco December 12, 2023 05:05
Co-authored-by: J. Nick Koston <nick@koston.org>
Comment on lines +22 to +23
@dataclass
class TessieBinarySensorEntityDescription(BinarySensorEntityDescription):
Copy link
Member

Choose a reason for hiding this comment

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

In a followup these should be changed due to a recent change https://developers.home-assistant.io/blog/2023/12/11/entity-description-changes/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will come up a few times in the other platforms, but ill look at addressing them all once I fully understand the repercussions.

@bdraco
Copy link
Member

bdraco commented Dec 16, 2023

Good to go once that last test is cleaned up

@Bre77
Copy link
Contributor Author

Bre77 commented Dec 16, 2023

Tests passing.

@bdraco bdraco dismissed joostlek’s stale review December 16, 2023 02:39

comments were addresses in the other PR

@bdraco
Copy link
Member

bdraco commented Dec 16, 2023

I think there are still a few more or GitHub mobile is behind again

Co-authored-by: J. Nick Koston <nick@koston.org>
@Bre77
Copy link
Contributor Author

Bre77 commented Dec 16, 2023

I think there are still a few more or GitHub mobile is behind again

Its not you, I made the changes on Github web on my mobile, so I missed some. Fixing the rest now.

@bdraco bdraco merged commit 887f9a2 into home-assistant:dev Dec 16, 2023
23 checks passed

from .common import TEST_VEHICLE_STATE_ONLINE, setup_platform

OFFON = [STATE_OFF, STATE_ON]
Copy link
Member

Choose a reason for hiding this comment

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

OFFON isn't used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yes, that was an idea I gave up on. I'll raise a PR to remove it.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2023
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