From af473cddf0c1adfc7c207e61f352266b207b5849 Mon Sep 17 00:00:00 2001 From: Ben Lebherz Date: Mon, 18 Mar 2019 20:14:14 +0100 Subject: [PATCH] replace einder lib with horimote (#22135) --- homeassistant/components/horizon/media_player.py | 8 ++++---- requirements_all.txt | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/horizon/media_player.py b/homeassistant/components/horizon/media_player.py index e7cfcfe62b1..3b1ae36152d 100644 --- a/homeassistant/components/horizon/media_player.py +++ b/homeassistant/components/horizon/media_player.py @@ -21,7 +21,7 @@ from homeassistant.const import ( from homeassistant.exceptions import PlatformNotReady import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['einder==0.3.1'] +REQUIREMENTS = ['horimote==0.4.1'] _LOGGER = logging.getLogger(__name__) @@ -44,8 +44,8 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ def setup_platform(hass, config, add_entities, discovery_info=None): """Set up the Horizon platform.""" - from einder import Client, keys - from einder.exceptions import AuthenticationError + from horimote import Client, keys + from horimote.exceptions import AuthenticationError host = config[CONF_HOST] name = config[CONF_NAME] @@ -162,7 +162,7 @@ class HorizonDevice(MediaPlayerDevice): def _send(self, key=None, channel=None): """Send a key to the Horizon device.""" - from einder.exceptions import AuthenticationError + from horimote.exceptions import AuthenticationError try: if key: diff --git a/requirements_all.txt b/requirements_all.txt index 873b225dd5d..413008105a3 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -379,9 +379,6 @@ edp_redy==0.0.3 # homeassistant.components.device_tracker.ee_brightbox eebrightbox==0.0.4 -# homeassistant.components.horizon.media_player -einder==0.3.1 - # homeassistant.components.eliqonline.sensor eliqonline==1.2.2 @@ -565,6 +562,9 @@ homekit[IP]==0.13.0 # homeassistant.components.homematicip_cloud homematicip==0.10.6 +# homeassistant.components.horizon.media_player +horimote==0.4.1 + # homeassistant.components.google # homeassistant.components.remember_the_milk httplib2==0.10.3