diff --git a/.gitignore b/.gitignore index af42862..f5f5160 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ .idea/sensor.trakt.iml .idea/vcs.xml .idea/workspace.xml + +\.idea/encodings\.xml diff --git a/custom_components/trakt/__init__.py b/custom_components/trakt/__init__.py new file mode 100644 index 0000000..1ae2566 --- /dev/null +++ b/custom_components/trakt/__init__.py @@ -0,0 +1,8 @@ +""" +Home Assistant component to feed the Upcoming Media Lovelace card with +Trakt user's upcoming TV episodes. + +https://github.com/custom-components/sensor.trakt + +https://github.com/custom-cards/upcoming-media-card +""" \ No newline at end of file diff --git a/custom_components/sensor/trakt.py b/custom_components/trakt/sensor.py similarity index 97% rename from custom_components/sensor/trakt.py rename to custom_components/trakt/sensor.py index 238c97c..9969423 100644 --- a/custom_components/sensor/trakt.py +++ b/custom_components/trakt/sensor.py @@ -1,11 +1,4 @@ -""" -Home Assistant component to feed the Upcoming Media Lovelace card with -Trakt user's upcoming TV episodes. - -https://github.com/custom-components/sensor.trakt - -https://github.com/custom-cards/upcoming-media-card -""" +"""Sensor platform for Trakt""" import json import logging import time @@ -16,7 +9,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.helpers.entity import Entity -__version__ = '0.0.6' +__version__ = '1.0.0' REQUIREMENTS = ['trakt==2.8.2', 'requests_oauthlib==1.0.0']