|
@@ -1,5 +1,5 @@
|
|
name: home-assistant-snap
|
|
name: home-assistant-snap
|
|
-version: '2021.1.5'
|
|
|
|
|
|
+version: '2021.2.0'
|
|
summary: Open source home automation that puts local control and privacy first
|
|
summary: Open source home automation that puts local control and privacy first
|
|
description: |
|
|
description: |
|
|
Home Assistant is a home automation platform running on Python 3.
|
|
Home Assistant is a home automation platform running on Python 3.
|
|
@@ -30,26 +30,11 @@ slots:
|
|
content: components
|
|
content: components
|
|
write:
|
|
write:
|
|
- $SNAP_DATA/custom_components
|
|
- $SNAP_DATA/custom_components
|
|
- certs:
|
|
|
|
- interface: content
|
|
|
|
- content: certs
|
|
|
|
- write:
|
|
|
|
- - $SNAP_DATA/certs
|
|
|
|
configurations:
|
|
configurations:
|
|
interface: content
|
|
interface: content
|
|
write:
|
|
write:
|
|
- $SNAP_DATA
|
|
- $SNAP_DATA
|
|
|
|
|
|
-hooks:
|
|
|
|
- install:
|
|
|
|
- plugs:
|
|
|
|
- - network
|
|
|
|
- - network-bind
|
|
|
|
- prepare-slot-certs:
|
|
|
|
- plugs:
|
|
|
|
- - network
|
|
|
|
- - network-bind
|
|
|
|
-
|
|
|
|
apps:
|
|
apps:
|
|
home-assistant-snap:
|
|
home-assistant-snap:
|
|
command: bin/hass --config $SNAP_DATA
|
|
command: bin/hass --config $SNAP_DATA
|
|
@@ -71,27 +56,10 @@ apps:
|
|
- components
|
|
- components
|
|
check-config:
|
|
check-config:
|
|
command: bin/hass --script check_config
|
|
command: bin/hass --script check_config
|
|
- renew-cert:
|
|
|
|
- command: bin/certs-daemon
|
|
|
|
- daemon: oneshot
|
|
|
|
- restart-condition: always
|
|
|
|
- timer: 00:00-24:00/24
|
|
|
|
- slots:
|
|
|
|
- - certs
|
|
|
|
- plugs:
|
|
|
|
- - network
|
|
|
|
- - network-bind
|
|
|
|
- force-renew-cert:
|
|
|
|
- command: bin/certs-daemon
|
|
|
|
- slots:
|
|
|
|
- - certs
|
|
|
|
- plugs:
|
|
|
|
- - network
|
|
|
|
- - network-bind
|
|
|
|
|
|
|
|
parts:
|
|
parts:
|
|
homeassistant:
|
|
homeassistant:
|
|
- plugin: python-wot-plugin
|
|
|
|
|
|
+ plugin: python #-wot-plugin
|
|
source: https://github.com/home-assistant/core.git
|
|
source: https://github.com/home-assistant/core.git
|
|
source-tag: ${SNAPCRAFT_PROJECT_VERSION}
|
|
source-tag: ${SNAPCRAFT_PROJECT_VERSION}
|
|
python-packages:
|
|
python-packages:
|
|
@@ -99,6 +67,8 @@ parts:
|
|
- wheel
|
|
- wheel
|
|
- Cython
|
|
- Cython
|
|
- pip
|
|
- pip
|
|
|
|
+ # build-environment:
|
|
|
|
+ # - SNAPCRAFT_PYTHON_INTERPRETER: python3.9
|
|
build-packages:
|
|
build-packages:
|
|
- python3
|
|
- python3
|
|
- python3-dev
|
|
- python3-dev
|
|
@@ -146,23 +116,11 @@ parts:
|
|
source-type: local
|
|
source-type: local
|
|
stage-packages:
|
|
stage-packages:
|
|
- uuid
|
|
- uuid
|
|
- - libossp-uuid16
|
|
|
|
- - libassuan0
|
|
|
|
- - gpg
|
|
|
|
- - gpg-agent
|
|
|
|
organize:
|
|
organize:
|
|
install: snap/hooks/install
|
|
install: snap/hooks/install
|
|
configure: snap/hooks/configure
|
|
configure: snap/hooks/configure
|
|
post-refresh: snap/hooks/post-refresh
|
|
post-refresh: snap/hooks/post-refresh
|
|
- prepare-slot-certs: snap/hooks/prepare-slot-certs
|
|
|
|
connect-plug-bin: snap/hooks/connect-plug-bin
|
|
connect-plug-bin: snap/hooks/connect-plug-bin
|
|
- bins:
|
|
|
|
- plugin: dump
|
|
|
|
- source: ./scripts/bin
|
|
|
|
- source-type: local
|
|
|
|
- organize:
|
|
|
|
- slot-certs: bin/slot-certs
|
|
|
|
- certs-daemon: bin/certs-daemon
|
|
|
|
config:
|
|
config:
|
|
plugin: dump
|
|
plugin: dump
|
|
source: ./scripts/config
|
|
source: ./scripts/config
|