fixed state case for rtorrent (#18778)
This commit is contained in:
parent
29f15393b1
commit
c69fe43e75
1 changed files with 3 additions and 3 deletions
|
@ -110,11 +110,11 @@ class RTorrentSensor(Entity):
|
||||||
if self.type == SENSOR_TYPE_CURRENT_STATUS:
|
if self.type == SENSOR_TYPE_CURRENT_STATUS:
|
||||||
if self.data:
|
if self.data:
|
||||||
if upload > 0 and download > 0:
|
if upload > 0 and download > 0:
|
||||||
self._state = 'Up/Down'
|
self._state = 'up_down'
|
||||||
elif upload > 0 and download == 0:
|
elif upload > 0 and download == 0:
|
||||||
self._state = 'Seeding'
|
self._state = 'seeding'
|
||||||
elif upload == 0 and download > 0:
|
elif upload == 0 and download > 0:
|
||||||
self._state = 'Downloading'
|
self._state = 'downloading'
|
||||||
else:
|
else:
|
||||||
self._state = STATE_IDLE
|
self._state = STATE_IDLE
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue