From bc61afa58152fa23c6930dd599c5e5870de52be4 Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Fri, 5 Apr 2019 21:20:49 -0500 Subject: [PATCH] The great migration --- .gitignore | 2 ++ custom_components/trakt/__init__.py | 8 ++++++++ .../{sensor/trakt.py => trakt/sensor.py} | 11 ++--------- 3 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 custom_components/trakt/__init__.py rename custom_components/{sensor/trakt.py => trakt/sensor.py} (97%) 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']