Skip to content

Commit

Permalink
Merge branch 'main' into add_dc_feature
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwentao authored Jan 15, 2025
2 parents 174d1c6 + 013aee4 commit 7237cb0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wagoid/[email protected].0
- uses: wagoid/[email protected].1
with:
configFile: .commitlint.config.mjs
build:
Expand Down
25 changes: 13 additions & 12 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
coverage:
status:
project:
default:
# Fail the build if the coverage decreases by more than 1%
threshold: 1%
# Set a minimum coverage percentage that must be met
target: 80%
# The status context shown in GitHub (optional)
name: Coverage Check

comment:
layout: "reach, diff, flags, files"
behavior: default
patch: off
project: off
# project:
# default:
# # Fail the build if the coverage decreases by more than 1%
# threshold: 1%
# # Set a minimum coverage percentage that must be met
# target: 80%
# # The status context shown in GitHub (optional)
# name: Coverage Check
# comment:
# layout: "reach, diff, flags, files"
# behavior: default
2 changes: 2 additions & 0 deletions midealocal/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,8 @@ def run(self) -> None: # noqa: PLR0915
break
except NoSupportedProtocol:
_LOGGER.debug("[%s] No Supported protocol", self._device_id)
# sleep 1 seconds to prevent high cpu usage in for loop
time.sleep(1)
# ignore and continue loop
continue
except ConnectionResetError: # refresh_status -> build_send exception
Expand Down

0 comments on commit 7237cb0

Please sign in to comment.