-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
Bump pydaikin to 2.13.1 #118679
Bump pydaikin to 2.13.1 #118679
Conversation
Hey there @fredrike, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
@bdraco only tagging you as you were involved in issues #114345 and fredrike/pydaikin#3 I believe the dependancy bump should also fix these - but seeking clarification before tagging that as the case |
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.
Hi there @kingy444 👋
The tests seem to fail, could you take a look and make sure our CI passes?
Thanks! 👍
../Frenck
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Hi @frenck is there an issue with the latest dev build? My Tests were passing so Ive blown my dockers away and restarted from scratch assuming i had a local issue (per https://developers.home-assistant.io/docs/development_environment/) Given its all been blown away and started from scratch im a bit stumped where to go next. Ive done this numerous times now and its all the same, deleted the docker volumes, images everything. Now even after running "Install all requirements" and "Install all test requirements" I am getting the below. If i pip install that, it moves to the next missing dependancy I thought "Maybe they just arent in the requirements file" so tried to run gen_requirements_all and get the below EDIT: Error from running "pytest" from the Tasks list (instead of the command line) |
@kingy444 you need to apply this patch to allow tests to succeed: diff --git a/tests/components/daikin/test_config_flow.py b/tests/components/daikin/test_config_flow.py
index 6d957384d4..8f32947b6a 100644
--- a/tests/components/daikin/test_config_flow.py
+++ b/tests/components/daikin/test_config_flow.py
@@ -28,9 +28,9 @@ def mock_daikin():
"""Mock the init function in pydaikin."""
return Appliance
- with patch("homeassistant.components.daikin.config_flow.Appliance") as Appliance:
+ with patch("homeassistant.components.daikin.config_flow.DaikinFactory") as Appliance:
type(Appliance).mac = PropertyMock(return_value="AABBCCDDEEFF")
- Appliance.factory.side_effect = mock_daikin_factory
+ Appliance.side_effect = mock_daikin_factory
yield Appliance
@@ -90,7 +90,7 @@ async def test_abort_if_already_setup(hass: HomeAssistant, mock_daikin) -> None:
)
async def test_device_abort(hass: HomeAssistant, mock_daikin, s_effect, reason) -> None:
"""Test device abort."""
- mock_daikin.factory.side_effect = s_effect
+ mock_daikin.side_effect = s_effect
result = await hass.config_entries.flow.async_init(
"daikin", |
thanks - just got to get my home assistant dev working again - there are some people on the discord with the same issues |
pydaikin 2.13.0 has been released, could you update your PR to use that? |
Definitely will, and will fix the tests etc too - but the above tagged issue was raised because vscode deployment appears to be broken at the moment making it hard to actually do anything on the Pr Seems since moving to |
It looks like there are some nice fixes.
|
the only "breaking change" is noted in the description (with screenshots) The integration previously created entities for all air con zones, even if disabled on the unit (so they never functioned) - These entities will no longer be created and need to be deleted manually (wouldnt know where to start to automate that) Re the release - I'm good with what works for the team, this one seems pretty minor in terms of impact |
hold off on merging - ive been able to replicate - was not something i changed so not something i tested. Need to work out what changed in the parsing between the move from bitbucket to github |
New version of pydaikin is published on pypi (fredrike/pydaikin@v2.11.1...v2.13.1) |
Friendly nudge to @kingy444 cause of the message above. |
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.
Nice, thanks, @kingy444 👍
../Frenck
Breaking change
While not introducing new features the upstream has resolved the creation of items that are not needed. So entities that were previously created and not functional are now disabled
Proposed change
Dependancy bump to new version of pydaikin
fredrike/pydaikin@v2.11.1...v2.13.1
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: