Skip to content

Commit

Permalink
Fix custom component for HA 0.92 (#1)
Browse files Browse the repository at this point in the history
Adding manifest and init files on container start
  • Loading branch information
PeteCondliffe authored and ericleb010 committed Aug 16, 2019
1 parent e5e4fe6 commit e1194af
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions xboxone/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ ENV LANG C.UTF-8
# Copy data for add-on
COPY run.sh /
COPY xboxone.py /
COPY manifest.json /
COPY __init__.py /
RUN chmod a+x /run.sh

# Install requirements for add-on
Expand Down
1 change: 1 addition & 0 deletions xboxone/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Required as part of the custom component HA 0.92
8 changes: 8 additions & 0 deletions xboxone/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"domain": "xboxone",
"name": "Xbox One",
"documentation": "https://github.com/hunterim/hassio-addons/tree/master/xboxone",
"dependencies": [],
"codeowners": ["@hunterjm"],
"requirements": []
}
2 changes: 1 addition & 1 deletion xboxone/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Copy over the xbox component
mkdir -p /config/custom_components/xboxone
cp -f xboxone.py /config/custom_components/xboxone/media_player.py
cp -f xboxone.py __init__.py manifest.json /config/custom_components/xboxone/

# Persistent tokens on reboot
touch /config/.xbox-token.json
Expand Down

0 comments on commit e1194af

Please sign in to comment.