Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
gazoodle committed Feb 26, 2025
2 parents b8474da + 7b5a0da commit 1394445
Show file tree
Hide file tree
Showing 7 changed files with 133 additions and 11 deletions.
61 changes: 61 additions & 0 deletions .devcontainer.linux.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"name": "gazoodle/gecko-home-assistant",
"image": "mcr.microsoft.com/devcontainers/python:3.13",
"postCreateCommand": "scripts/setup",
"forwardPorts": [
8123
],
"portsAttributes": {
"8123": {
"label": "Home Assistant",
"onAutoForward": "notify"
}
},
"customizations": {
"vscode": {
"extensions": [
"charliermarsh.ruff",
"github.vscode-pull-request-github",
"ms-python.python",
"ms-python.vscode-pylance",
"ryanluker.vscode-coverage-gutters"
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 4,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": false,
"files.trimTrailingWhitespace": true,
"python.analysis.typeCheckingMode": "basic",
"python.analysis.autoImportCompletions": true,
"python.defaultInterpreterPath": "/usr/local/bin/python",
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
}
}
}
},
"remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers-extra/features/apt-packages:1": {
"packages": [
"ffmpeg",
"libturbojpeg0",
"libpcap-dev"
]
}
},
"runArgs": [
"-v",
"${env:HOME}${env:USERPROFILE}/.ssh:/tmp/.ssh",
"--mount",
"type=bind,source=/media/psf/Home/Documents/Source/geckolib/src/geckolib,target=/usr/local/lib/python3.13/site-packages/geckolib,readonly",
"--mount",
"type=bind,source=/media/psf/Home/Documents/Source/geckolib,target=/usr/src/geckolib",
"--add-host",
"spa=10.1.209.91",
"--add-host",
"udpspa=10.1.205.154"
]
}
61 changes: 61 additions & 0 deletions .devcontainer.macos.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"name": "gazoodle/gecko-home-assistant",
"image": "mcr.microsoft.com/devcontainers/python:3.13",
"postCreateCommand": "scripts/setup",
"forwardPorts": [
8123
],
"portsAttributes": {
"8123": {
"label": "Home Assistant",
"onAutoForward": "notify"
}
},
"customizations": {
"vscode": {
"extensions": [
"charliermarsh.ruff",
"github.vscode-pull-request-github",
"ms-python.python",
"ms-python.vscode-pylance",
"ryanluker.vscode-coverage-gutters"
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 4,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": false,
"files.trimTrailingWhitespace": true,
"python.analysis.typeCheckingMode": "basic",
"python.analysis.autoImportCompletions": true,
"python.defaultInterpreterPath": "/usr/local/bin/python",
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
}
}
}
},
"remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers-extra/features/apt-packages:1": {
"packages": [
"ffmpeg",
"libturbojpeg0",
"libpcap-dev"
]
}
},
"runArgs": [
"-v",
"${env:HOME}${env:USERPROFILE}/.ssh:/tmp/.ssh",
"--mount",
"type=bind,source=/Users/gary/Documents/Source/geckolib/src/geckolib,target=/usr/local/lib/python3.13/site-packages/geckolib,readonly",
"--mount",
"type=bind,source=/Users/gary/Documents/Source/geckolib,target=/usr/src/geckolib",
"--add-host",
"spa=10.1.209.91",
"--add-host",
"udpspa=10.1.205.154"
]
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

# Version History

## v0.1.24
- Bump geckolib to 1.0.6 to handle bubble generator issues
- Fix platorm loading bug that caused errors in log file during start-up

## v0.1.23
- Bump geckolib to fix DIV/0

Expand Down
9 changes: 2 additions & 7 deletions config/configuration.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# https://www.home-assistant.io/integrations/default_config/
# For gecko development, we only need a small subset
config:
history:
logbook:
stream:
notify:
homeassistant_alerts:
# Example configuration.yaml entry
default_config:

# https://www.home-assistant.io/integrations/homeassistant/
homeassistant:
Expand Down
4 changes: 2 additions & 2 deletions custom_components/gecko/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"iot_class": "local_push",
"issue_tracker": "https://github.com/gazoodle/gecko-home-assistant/issues",
"requirements": [
"geckolib==1.0.5"
"geckolib==1.0.6"
],
"version": "0.1.23"
"version": "0.1.24"
}
3 changes: 2 additions & 1 deletion custom_components/gecko/spa_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ async def load_platforms(self) -> None:

def platform_loaded(self, platform: str) -> None:
"""Call when a platform has loaded."""
self.platforms.append(platform)
if platform not in self.platforms:
self.platforms.append(platform)

async def reload(self) -> None:
"""Reload the platforms."""
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
colorlog==6.9.0
homeassistant==2025.1.2
homeassistant==2025.2.4
pip>=21.3.1
ruff==0.9.6

0 comments on commit 1394445

Please sign in to comment.