Skip to content

Commit

Permalink
Extra log fix (#55)
Browse files Browse the repository at this point in the history
* remove extra development log message for closing #54

* cl and housekeeping

* remove unneeded lines in Dockerfile
  • Loading branch information
tlskinneriv authored Jan 9, 2025
1 parent 76476bc commit c453f7e
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 32 deletions.
32 changes: 11 additions & 21 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
8 changes: 3 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},

Expand All @@ -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.
Expand Down
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,24 @@ 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

- 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

Expand Down
2 changes: 0 additions & 2 deletions custom_components/awnet_local/helpers_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion custom_components/awnet_local/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit c453f7e

Please sign in to comment.