mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 10:17:51 +00:00
fixed state case for rtorrent (#18778)
This commit is contained in:
parent
29f15393b1
commit
c69fe43e75
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user