Repository navigation
Conversation
for more information, see https://pre-commit.ci
The project does not depend on pytest-asyncio, so the async test functions failed with "async def functions are not natively supported". Run coroutines with asyncio.run like the rest of the suite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
VeSyncAirFryerDC111 never set `self.state`, so `to_dict()`, `display()` and consumers such as Home Assistant that read `device.state` failed. - Add AirFryerDC111State with per-chamber FryerChamberState and top-level cook_status/cook_set_temp/cook_set_time/remaining_time reporting the active chamber, matching the single-chamber fryers. - Normalize temp_unit to celsius/fahrenheit and send the device unit in startMultiCook instead of hardcoding 'c'. - Validate chamber, time, temperature range and cooking mode before sending a request. - Parse getAirfryerMultiStatus through process_bypassv2_result and the AirFryerMultiStatusResult model. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for the additional work on #552. The For the user-facing status, I think I think we can leave the API value as |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for the Cosori Turbo Tower Pro Smart dual-chamber air fryer (
CAF-DC111S-AEU). Closes #486.This builds on #536 by @arypien. Their four commits are included unchanged, and the last three commits here fix and extend them. If you'd rather merge #536 first, the three commits apply cleanly on top of it.
Changes on top of #536
async def functions are not natively supported. They now useasyncio.run, like the rest of the suite.VeSyncAirFryerDC111now setsself.state. Without it,to_dict(),display()and consumers that readdevice.state(e.g. the Home Assistant integration) raiseAttributeError.AirFryerDC111State.chambersholds aFryerChamberStateper chamber: status, mode, recipe, set temperature, set time and remaining time, in minutes.cook_status,cook_set_temp,cook_set_timeandremaining_timereport the active chamber, so the device exposes the same attributes asVeSyncAirFryer158.current_tempandpreheat_set_timereturnNone, as this model doesn't report them.temp_unitis normalized tocelsius/fahrenheitfrom the status response, andstartMultiCooksends that unit instead of a hardcoded'c'.getAirfryerMultiStatusgoes throughprocess_bypassv2_resultwith theAirFryerMultiStatusResultmodel.DC111_RECIPES. OnlyAirFry(recipeId14) is confirmed on a device, so it is the only entry.supported_devices.mdanddevices/kitchen.md.Testing
pytest: 395 passed.pylintscores 10.00/10 on the changed modules.ruffandmypyreport nothing new againstdev.CAF-DC123S-DEUR) reports itself to VeSync asCAF-DC111S-AEU/VS_WFON_CAF-DC111S-AEU_EU. It is detected, andupdate()fills both chambers.vesyncintegration pointed at this branch. The existing air fryer sensors work, providedreadyis added to the HA-sidecook_statusoptions.startMultiCook/endCookwere validated on hardware in feat: add CAF-DC111S-AEU air fryer support #536. I only changed how their payloads are built. The physical Start button is still required.Notes for Home Assistant
This model reports a
readystatus: a program is prepared and waiting for Start. HA'sAIR_FRYER_MODE_MAPand thecook_statussensor options don't include it yet.🤖 Generated with Claude Code