diff --git a/xboxone/Dockerfile b/xboxone/Dockerfile index d5d60c9..f300c4f 100644 --- a/xboxone/Dockerfile +++ b/xboxone/Dockerfile @@ -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 diff --git a/xboxone/__init__.py b/xboxone/__init__.py new file mode 100644 index 0000000..04e15e1 --- /dev/null +++ b/xboxone/__init__.py @@ -0,0 +1 @@ +# Required as part of the custom component HA 0.92 diff --git a/xboxone/manifest.json b/xboxone/manifest.json new file mode 100644 index 0000000..57d2c9b --- /dev/null +++ b/xboxone/manifest.json @@ -0,0 +1,8 @@ +{ + "domain": "xboxone", + "name": "Xbox One", + "documentation": "https://github.com/hunterim/hassio-addons/tree/master/xboxone", + "dependencies": [], + "codeowners": ["@hunterjm"], + "requirements": [] + } diff --git a/xboxone/run.sh b/xboxone/run.sh index 1e28e3c..4d17470 100644 --- a/xboxone/run.sh +++ b/xboxone/run.sh @@ -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