diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 3158644..3799a99 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -10,29 +10,29 @@ RUN \ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ # Additional library needed by some tests and accordingly by VScode Tests Discovery bluez \ + ffmpeg \ libudev-dev \ libavformat-dev \ libavcodec-dev \ libavdevice-dev \ libavutil-dev \ + libgammu-dev \ libswscale-dev \ libswresample-dev \ libavfilter-dev \ libpcap-dev \ - git \ - libffi-dev \ - libssl-dev \ - libjpeg-dev \ - zlib1g-dev \ - autoconf \ - build-essential \ - libopenjp2-7 \ - libtiff5 \ libturbojpeg0 \ - tzdata \ + libyaml-dev \ + libxml2 \ + git \ + cmake \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +# Add go2rtc binary + +COPY --from=ghcr.io/alexxit/go2rtc:latest /usr/local/bin/go2rtc /bin/go2rtc + RUN mkdir /srv/homeassistant \ && chown vscode:vscode /srv/homeassistant @@ -48,19 +48,9 @@ WORKDIR /srv/homeassistant RUN python -m venv . \ && source bin/activate \ && python -m pip install wheel \ - && pip3 install urllib3==1.26.7 homeassistant + && pip3 install homeassistant RUN ./setup.sh -# WORKDIR /workspaces - -# Install Python dependencies from requirements -COPY .devcontainer/requirements.txt ./ -# COPY homeassistant/package_constraints.txt homeassistant/package_constraints.txt -RUN pip3 install -r requirements.txt -# COPY requirements_test.txt requirements_test_pre_commit.txt ./ -# RUN pip3 install -r requirements_test.txt -RUN rm -rf requirements.txt requirements_test.txt requirements_test_pre_commit.txt homeassistant/ - # Set the default shell to bash instead of sh ENV SHELL /bin/bash diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 39d1d3e..25a75ea 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -10,9 +10,7 @@ // Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6 // Append -bullseye or -buster to pin to an OS version. // Use -bullseye variants on local on arm64/Apple Silicon. - "VARIANT": "3.11-bullseye", - // Options - "NODE_VERSION": "lts/*" + "VARIANT": "1-3.13" } }, @@ -24,10 +22,10 @@ "pylint.path": ["/usr/local/py-utils/bin/pylint"], "pylint.args": [ "--init-hook", - "import sys; sys.path.append('/srv/homeassistant/lib/python3.11/site-packages/')" + "import sys; sys.path.append('/srv/homeassistant/lib/python3.13/site-packages/')" ], "python.autoComplete.extraPaths": [ - "/srv/homeassistant/lib/python3.11/site-packages/" + "/srv/homeassistant/lib/python3.13/site-packages/" ] }, // Add the IDs of extensions you want installed when the container is created. diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f5fa1f..bd0de29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning]. +## [1.2.1] - 2025-01-09 + +### Fixed + +- Removed unnecessary development log message for + [#54](https://github.com/tlskinneriv/awnet_local/issues/54) +- HOUSEKEEPING: Update devcontainer config for Python 3.13 + ## [1.2.0] - 2023-09-09 ### Added @@ -12,9 +20,9 @@ and this project adheres to [Semantic Versioning]. - The following calculated sensors have been added: - Wind Direction Cardinal - Gust Direction Cardinal -- BETA: added a weather entity to collect common data in one place and loosely predict the weather - condition outside based on data available from the sensor array. The weather condition part of - this entity is currently in testing. Please raise issues for any unexpected behavior. + - BETA: added a weather entity to collect common data in one place and loosely predict the weather + condition outside based on data available from the sensor array. The weather condition part of + this entity is currently in testing. Please raise issues for any unexpected behavior. ## [1.1.3] - 2023-07-13 diff --git a/custom_components/awnet_local/helpers_calc.py b/custom_components/awnet_local/helpers_calc.py index 346af3c..9c65538 100644 --- a/custom_components/awnet_local/helpers_calc.py +++ b/custom_components/awnet_local/helpers_calc.py @@ -126,8 +126,6 @@ def last_rain(lightning_time: str, hourly_rain_in: float) -> any: Returns: any: timestamp if there is data to report; None if it's not raining """ - print("we are calculating last rain") - print(hourly_rain_in) if hourly_rain_in > 0: return AmbientSensorConversions.mysql_timestamp_to_datetime(lightning_time) return None diff --git a/custom_components/awnet_local/manifest.json b/custom_components/awnet_local/manifest.json index 3aeebda..1801aba 100644 --- a/custom_components/awnet_local/manifest.json +++ b/custom_components/awnet_local/manifest.json @@ -11,5 +11,5 @@ "iot_class": "local_push", "issue_tracker": "https://github.com/tlskinneriv/awnet_local/issues", "requirements": [], - "version": "1.2.0" + "version": "1.2.1" } \ No newline at end of file