Skip to content

Commit

Permalink
Merge pull request #308 from jwillemsen/jwi-modelid
Browse files Browse the repository at this point in the history
Set model_id and update all snapshots to the latest HA version
  • Loading branch information
jwillemsen authored Oct 3, 2024
2 parents 02dc304 + 3f1033c commit 67169d2
Show file tree
Hide file tree
Showing 6 changed files with 6,790 additions and 112 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pip==24.0
pip==24.2
pre-commit==3.6.2
black==24.2.0
flake8==7.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Python
uses: "actions/setup-python@v5"
with:
python-version: "3.11"
python-version: "3.12"
- name: Install requirements
run: |
pip install --constraint=.github/workflows/constraints.txt pip
Expand Down
2 changes: 2 additions & 0 deletions custom_components/daikin_onecta/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def device_info(self):
mac_add = ""
model = ""
sw_vers = ""
model_id = self.daikin_data.get("deviceModel")
supported_management_point_types = {"gateway"}
management_points = self.daikin_data.get("managementPoints", [])
for management_point in management_points:
Expand All @@ -65,6 +66,7 @@ def device_info(self):
"manufacturer": "Daikin",
"model": model,
"name": self.name,
"model_id": model_id,
"sw_version": sw_vers.replace("_", "."),
}

Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Daikin Onecta",
"render_readme": true,
"homeassistant": "2024.7.0"
"homeassistant": "2024.8.0"
}
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pre-commit==3.6.2
flake8==7.0.0
reorder-python-imports==3.12.0
homeassistant
homeassistant>=2024.10.0
pytest
Loading

0 comments on commit 67169d2

Please sign in to comment.