Skip to content

Commit

Permalink
Merge pull request #20 from LaggAt/bug/pin_library_version
Browse files Browse the repository at this point in the history
Bug/pin library version
  • Loading branch information
LaggAt authored Apr 16, 2021
2 parents 768e9c9 + 7043cca commit ca0dd39
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 16 deletions.
11 changes: 1 addition & 10 deletions .devcontainer/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,7 @@ timer:
updater:
zeroconf:
zone:

#group: !include groups.yaml
#automation: !include automations.yaml
#script: !include scripts.yaml
#scene: !include scenes.yaml

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
group:

# enable remote python debugger
debugpy:
Expand Down
5 changes: 3 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// "containerEnv": {
// "WS_PATH": "/usr/share/hassio/share/dev/hacs-govee",
// },
//"image": "laggat/hacs-base-container",
"image": "ludeeus/container:python-base-debian",
//"vsch.local.folder": "/usr/share/hassio/share/dev/hacs-govee",
//"dockerFile": "Dockerfile",
Expand All @@ -17,7 +18,7 @@
// "appPort": [
// "9123:8123"
// ],
"postCreateCommand": "/bin/echo ------------ postCreateCommand apt-get ------------ && apt-get update && apt-get -y install bash bluetooth bluez bluez-tools build-essential ca-certificates cython gcc git iputils-ping libatomic1 libavcodec-dev libc-dev libffi-dev libjpeg-dev libpcap-dev libssl-dev make nano openssh-client procps python3 python3-dev python3-dev python3-pip python3-setuptools rfkill unzip wget wget zlib1g-dev && /bin/echo ------------ postCreateCommand python/pip ------------ && /usr/local/bin/python3 -m pip install --upgrade pip && /usr/local/bin/pip3 install black colorlog debugpy pexpect pygatt pylint PyNaCl==1.3.0 && /usr/local/bin/pip3 install -r /workspaces/hacs-govee/requirements_test.txt && /bin/echo ------------ postCreateCommand container install ------------ && mkdir -p /src/ludeeus && cd /src/ludeeus && git clone https://github.com/ludeeus/container && cp -r ./container/rootfs/common/* / && chmod +x /usr/bin/container && /usr/bin/container install && /bin/echo ------------ postCreateCommand symlink our component ------------ && /bin/mkdir -p /config/custom_components && /bin/ln -s /workspaces/hacs-govee/custom_components/govee /config/custom_components/govee && /bin/echo ------------ postCreateCommand install hacs ------------ && mkdir -p /src/hacs && cd /src/hacs && /bin/mkdir -p /config/custom_components/hacs && /usr/bin/wget https://github.com/hacs/integration/releases/latest/download/hacs.zip && /usr/bin/unzip hacs.zip -d /config/custom_components/hacs && /bin/rm hacs.zip && /bin/echo ------------ postCreateCommand finished, starting HASS ------------ ",
"postCreateCommand": "/bin/chmod +x /workspaces/hacs-govee/.devcontainer/postCreateContainer.sh && /workspaces/hacs-govee/.devcontainer/postCreateContainer.sh",
"extensions": [
"ms-python.python",
"github.vscode-pull-request-github",
Expand Down Expand Up @@ -70,4 +71,4 @@
"-v",
"/run/udev:/run/udev:ro",
]
}
}
32 changes: 32 additions & 0 deletions .devcontainer/postCreateContainer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash

/bin/echo ------------ postCreateCommand apt-get ------------
apt-get update
apt-get -y install bash bluetooth bluez bluez-tools build-essential ca-certificates cython gcc git iputils-ping libatomic1 libavcodec-dev libc-dev libffi-dev libjpeg-dev libpcap-dev libssl-dev make nano openssh-client procps python3 python3-dev python3-dev python3-pip python3-setuptools rfkill unzip wget wget zlib1g-dev

/bin/echo ------------ postCreateCommand python/pip ------------
/usr/local/bin/python3 -m pip install --upgrade pip
/usr/local/bin/pip3 install black colorlog debugpy pexpect pygatt pylint PyNaCl==1.3.0
/usr/local/bin/pip3 install -r /workspaces/hacs-govee/requirements_test.txt

/bin/echo ------------ postCreateCommand container install ------------
mkdir -p /src/ludeeus
cd /src/ludeeus
git clone https://github.com/ludeeus/container
cp -r ./container/rootfs/common/* /
chmod +x /usr/bin/container
/usr/bin/container install

/bin/echo ------------ postCreateCommand symlink our component ------------
/bin/mkdir -p /config/custom_components
/bin/ln -s /workspaces/hacs-govee/custom_components/govee /config/custom_components/govee

/bin/echo ------------ postCreateCommand install hacs ------------
mkdir -p /src/hacs
cd /src/hacs
/bin/mkdir -p /config/custom_components/hacs
/usr/bin/wget https://github.com/hacs/integration/releases/latest/download/hacs.zip
/usr/bin/unzip hacs.zip -d /config/custom_components/hacs
/bin/rm hacs.zip

/bin/echo ------------ postCreateCommand finished ------------
8 changes: 8 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Home Assistant UI in Chrome",
"request": "launch",
"type": "pwa-chrome",
"url": "http://192.168.144.5:9123
",
"webRoot": "${workspaceFolder}"
},
{
"name": "Python: Remote Attach",
"type": "python",
Expand Down
4 changes: 2 additions & 2 deletions custom_components/govee/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"codeowners": ["@LaggAt"],
"domain": "govee",
"name": "Govee",
"version": "0.1.7",
"version": "0.1.8",
"config_flow": true,
"documentation": "https://github.com/LaggAt/hacs-govee/blob/master/README.md",
"issue_tracker": "https://github.com/LaggAt/hacs-govee/issues",
"requirements": ["govee-api-laggat==0.1.38", "dacite==1.5.1"],
"requirements": ["govee-api-laggat==0.1.39", "dacite==1.6.0"],
"ssdp": [],
"zeroconf": [],
"homekit": {},
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "govee",
"hacs": "0.1.7",
"hacs": "0.1.8",
"domains": [
"light"
],
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ not_skip = __init__.py
force_sort_within_sections = true
sections = FUTURE,STDLIB,INBETWEENS,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
default_section = THIRDPARTY
known_first_party = custom_components.integration_blueprint
known_first_party = custom_components.govee
combine_as_imports = true

0 comments on commit ca0dd39

Please sign in to comment.