Skip to content

Commit

Permalink
Support for Airjet_V01 and Hydrojet devices (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdpuk committed Jan 27, 2024
1 parent 718caaa commit 3039d49
Show file tree
Hide file tree
Showing 22 changed files with 946 additions and 575 deletions.
44 changes: 44 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11-bullseye",
"name": "bestway",
"appPort": [
"9125:8123"
],
"postCreateCommand": "scripts/setup",
"portsAttributes": {
"9125": {
"label": "Home Assistant",
"onAutoForward": "notify"
},
"5678": {
"label": "Debug",
"onAutoForward": "ignore"
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"github.vscode-pull-request-github",
"ryanluker.vscode-coverage-gutters",
"ms-python.black-formatter",
"ms-python.pylint",
"ms-python.vscode-pylance",
"bierner.github-markdown-preview"
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 4,
"terminal.integrated.shell.linux": "/bin/bash",
"python.pythonPath": "/usr/bin/python3",
"python.analysis.autoSearchPaths": false,
"python.formatting.provider": "black",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true
}
}
},
"remoteUser": "vscode"
}
60 changes: 0 additions & 60 deletions .devcontainer/README.md

This file was deleted.

30 changes: 0 additions & 30 deletions .devcontainer/devcontainer.json

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
__pycache__
config/*
!config/configuration.yaml
pythonenv*
venv
.venv
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
rev: v3.4.0
hooks:
- id: pyupgrade
args: [--py310-plus]
args: [--py311-plus]
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
Expand Down Expand Up @@ -73,7 +73,7 @@ repos:
- id: python-typing-update
stages: [manual]
args:
- --py310-plus
- --py311-plus
- --force
- --keep-updates
files: ^(custom_components|tests|script)/.+\.py$
Expand Down
22 changes: 2 additions & 20 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,9 @@
"version": "2.0.0",
"tasks": [
{
"label": "Run Home Assistant on port 9124",
"label": "Run Home Assistant",
"type": "shell",
"command": "container start",
"problemMatcher": []
},
{
"label": "Run Home Assistant configuration against /config",
"type": "shell",
"command": "container check",
"problemMatcher": []
},
{
"label": "Upgrade Home Assistant to latest dev",
"type": "shell",
"command": "container install",
"problemMatcher": []
},
{
"label": "Install a specific version of Home Assistant",
"type": "shell",
"command": "container set-version",
"command": "scripts/develop",
"problemMatcher": []
}
]
Expand Down
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,7 @@ Bestway uses different API endpoints for EU and US. If you get an error stating

A Wi-Fi enabled model is required. No custom hardware is required.

The following devices are supported:

* Lay-Z-Spa Airjet
* Flowclear Smart Touch

The following devices require further development effort from willing and able volunteers:

* Lay-Z-Spa HydroJet Pro

The integration attempts to detect unknown devices and will provide some entities and debug logs in these cases. Please report these values and logs in any reports.
See the [supported devices](docs/supported-devices.md) list for more details.

## Installation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ logger:
logs:
custom_components.bestway: debug

# If you need to debug uncomment the line below
# Doc: https://www.home-assistant.io/integrations/debugpy/
debugpy:
start: true
wait: false
1 change: 1 addition & 0 deletions custom_components/bestway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
Platform.BINARY_SENSOR,
Platform.CLIMATE,
Platform.NUMBER,
Platform.SELECT,
Platform.SENSOR,
Platform.SWITCH,
]
Expand Down
Loading

0 comments on commit 3039d49

Please sign in to comment.