From c69fe43e756f773f54561dd30664d9d44e2477ce Mon Sep 17 00:00:00 2001 From: Eliseo Martelli Date: Sat, 1 Dec 2018 12:00:35 +0100 Subject: [PATCH] fixed state case for rtorrent (#18778) --- homeassistant/components/sensor/rtorrent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/sensor/rtorrent.py b/homeassistant/components/sensor/rtorrent.py index 7822bcd58b7..8ec6a45b639 100644 --- a/homeassistant/components/sensor/rtorrent.py +++ b/homeassistant/components/sensor/rtorrent.py @@ -110,11 +110,11 @@ class RTorrentSensor(Entity): if self.type == SENSOR_TYPE_CURRENT_STATUS: if self.data: if upload > 0 and download > 0: - self._state = 'Up/Down' + self._state = 'up_down' elif upload > 0 and download == 0: - self._state = 'Seeding' + self._state = 'seeding' elif upload == 0 and download > 0: - self._state = 'Downloading' + self._state = 'downloading' else: self._state = STATE_IDLE else: