Skip to content

Commit b1e645d

Browse files
authored
fix: container issue from api change and ci update (#257)
1 parent de0a0c7 commit b1e645d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
id: release
8080
uses: python-semantic-release/[email protected]
8181
with:
82-
github_token: ${{ secrets.DEPLOY_KEY }}
82+
github_token: ${{ secrets.GH_TOKEN }}
8383

8484
- name: Publish package distributions to PyPI
8585
uses: pypa/[email protected]
@@ -92,4 +92,4 @@ jobs:
9292
uses: python-semantic-release/[email protected]
9393
if: steps.release.outputs.released == 'true'
9494
with:
95-
github_token: ${{ secrets.DEPLOY_KEY }}
95+
github_token: ${{ secrets.GH_TOKEN }}

roborock/containers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ def from_dict(cls, data: dict[str, Any]):
141141
cls_annotations.update(getattr(base, "__annotations__", {}))
142142
remove_keys = []
143143
for key, value in data.items():
144-
if value == "None" or value is None:
145-
data[key] = None
146-
continue
147144
if key not in cls_annotations:
148145
remove_keys.append(key)
149146
continue
147+
if value == "None" or value is None:
148+
data[key] = None
149+
continue
150150
field_type: str = cls_annotations[key]
151151
if "|" in field_type:
152152
# It's a union

0 commit comments

Comments
 (0)