Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmere committed Jun 7, 2024
1 parent 5ebd7a8 commit cebf122
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 47 deletions.
Binary file added .DS_Store
Binary file not shown.
25 changes: 0 additions & 25 deletions .devcontainer.json

This file was deleted.

19 changes: 0 additions & 19 deletions .vscode/tasks.json

This file was deleted.

8 changes: 8 additions & 0 deletions hello_world/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ARG BUILD_FROM
FROM $BUILD_FROM

# Copy data for add-on
COPY run.sh /
RUN chmod a+x /run.sh

CMD [ "/run.sh" ]
22 changes: 22 additions & 0 deletions hello_world/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Hello World

Check failure on line 1 in hello_world/config.yaml

View workflow job for this annotation

GitHub Actions / Lint add-on hello_world

'boot' should be removed, it uses a default value

Check failure on line 1 in hello_world/config.yaml

View workflow job for this annotation

GitHub Actions / Lint add-on hello_world

'startup' should be removed, it uses a default value
version: 1.1.0
slug: hello_world
description: My first Home Assistant add-on.
arch:
- armhf
- armv7
- aarch64
- amd64
- i386
startup: application
boot: auto
ports:
8000/tcp: 8000
options:
greeting: "Hello, Home Assistant!"
schema:
greeting:
type: string
default: "Hello, Home Assistant!"
image: aschmere/hello_world:{arch}-1.1.0

5 changes: 5 additions & 0 deletions hello_world/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bashio

echo "Hello world!"

python3 -m http.server 8000
6 changes: 3 additions & 3 deletions repository.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# https://developers.home-assistant.io/docs/add-ons/repository#repository-configuration
name: Example Home Assistant add-on repository
url: 'https://github.com/home-assistant/addons-example'
maintainer: Awesome Maintainer <awesome@example.com>
name: Arnos Home Assistant Add-On Test Repository
url: 'https://github.com/aschmere/hass_addon_test'
maintainer: Test

0 comments on commit cebf122

Please sign in to comment.