-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
There was a problem hiding this 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'
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: J. Nick Koston <nick@koston.org>
@dataclass | ||
class TessieBinarySensorEntityDescription(BinarySensorEntityDescription): |
There was a problem hiding this comment.
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/
There was a problem hiding this comment.
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.
Good to go once that last test is cleaned up |
Tests passing. |
comments were addresses in the other PR
I think there are still a few more or GitHub mobile is behind again |
Co-authored-by: J. Nick Koston <nick@koston.org>
Its not you, I made the changes on Github web on my mobile, so I missed some. Fixing the rest now. |
|
||
from .common import TEST_VEHICLE_STATE_ONLINE, setup_platform | ||
|
||
OFFON = [STATE_OFF, STATE_ON] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OFFON isn't used.
There was a problem hiding this comment.
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.
Breaking change
Proposed change
Add Binary Sensor platform to Tessie
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: