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
Address late review of SwitchBee #78412
Address late review of SwitchBee #78412
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 also take into account all my comments from #78386 and apply them to the switch platform
@epenet, Thanks for your comments! I'll start working on them right away. |
40b4f89
to
c22686a
Compare
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.
For my part it looks OK, but I suggest that you wait for confirmation from @frenck and @MartinHjelmare since it includes changes they requested.
Please add a link to a changelog or GitHub commit compare view for the version bump in the PR description. Thanks! |
|
Please tag a GitHub release that correspond to the PyPI release when publishing a new release. This will make it easier for the community to track the development of the library. I recommend automating this with a GitHub action. |
Now that it is merged, can I suggest that you add switchbee to strict typing as a follow-up PR? |
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.
One small (late) comment
@property | ||
def available(self) -> bool: | ||
"""Return True if entity is available.""" | ||
return self._is_online and self.coordinator.last_update_success |
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.
The last update check is provided by the parent entity.
return self._is_online and super().available
Yeah Sure :) |
Breaking change
Proposed change
#70201
config_flow.py
and removed its logic from the code [@frenck ]DataUpdateCoordinator
code moved from__init__.py
tocoordinator.py
[@frenck]Type of change
Additional information
Checklist
black --fast 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
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: