From 679058ac39e365d5fb94bcb3253f402b8797d7b0 Mon Sep 17 00:00:00 2001 From: Erik Seglem Date: Sat, 11 Nov 2023 05:53:28 +0000 Subject: [PATCH] Fixes to get merge running. --- .devcontainer.json | 5 +---- custom_components/wattbox/__init__.py | 2 +- custom_components/wattbox/manifest.json | 4 +--- requirements.txt | 4 ++-- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.devcontainer.json b/.devcontainer.json index 6be8ea1..3c41bf8 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -1,6 +1,6 @@ { "name": "ludeeus/integration_blueprint", - "image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.10-bullseye", + "image": "mcr.microsoft.com/devcontainers/python:3.11-bullseye", "postCreateCommand": "scripts/setup", "forwardPorts": [ 8123 @@ -27,9 +27,6 @@ "editor.tabSize": 4, "python.pythonPath": "/usr/bin/python3", "python.analysis.autoSearchPaths": false, - "python.linting.pylintEnabled": false, - "python.linting.enabled": true, - "python.formatting.provider": "none", "editor.formatOnPaste": false, "editor.formatOnSave": true, "editor.formatOnType": true, diff --git a/custom_components/wattbox/__init__.py b/custom_components/wattbox/__init__.py index 9614f3f..66db4d3 100644 --- a/custom_components/wattbox/__init__.py +++ b/custom_components/wattbox/__init__.py @@ -125,7 +125,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: _LOGGER.debug(", ".join([str(v) for _, v in hass.data[DOMAIN_DATA].items()])) _LOGGER.debug(repr(hass.data[DOMAIN_DATA])) for _, wattbox in hass.data[DOMAIN_DATA].items(): - _LOGGER.debug("%s has %s outlets%s", wattbox, len(wattbox.outlets)) + _LOGGER.debug("%s has %s outlets", wattbox, len(wattbox.outlets)) for outlet in wattbox.outlets: _LOGGER.debug("Outlet: %s - %s", outlet, repr(outlet)) diff --git a/custom_components/wattbox/manifest.json b/custom_components/wattbox/manifest.json index 8b647e3..b628951 100644 --- a/custom_components/wattbox/manifest.json +++ b/custom_components/wattbox/manifest.json @@ -5,9 +5,7 @@ "integration_type": "device", "documentation": "https://github.com/eseglem/hass-wattbox", "issue_tracker": "https://github.com/eseglem/hass-wattbox/issues", - "dependencies": [ - "component" - ], + "dependencies": [], "codeowners": [ "@eseglem" ], diff --git a/requirements.txt b/requirements.txt index 8f958c7..9b1b962 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -homeassistant==2023.5.0 +homeassistant==2023.8.0 +homeassistant-stubs==2023.8.0 pip>=21.0,<23.2 -homeassistant-stubs pywattbox [http, ip] @ git+https://github.com/eseglem/pywattbox@develop#pywattbox==0.6.0