Don't modify Redis args directly when initializing the object in another plugin
This commit is contained in:
parent
964c7b5cf0
commit
4e0e4863a0
2 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ class AdafruitIoPlugin(Plugin):
|
|||
def _get_redis(self):
|
||||
from redis import Redis
|
||||
|
||||
redis_args = get_backend('redis').redis_args
|
||||
redis_args = get_backend('redis').redis_args.copy()
|
||||
redis_args['socket_timeout'] = 1
|
||||
return Redis(**redis_args)
|
||||
|
||||
|
|
|
@ -706,7 +706,7 @@ class LightHuePlugin(LightPlugin):
|
|||
self.animation_thread = None
|
||||
self.redis = None
|
||||
|
||||
redis_args = get_backend('redis').redis_args
|
||||
redis_args = get_backend('redis').redis_args.copy()
|
||||
redis_args['socket_timeout'] = transition_seconds
|
||||
self.redis = Redis(**redis_args)
|
||||
|
||||
|
|
Loading…
Reference in a new issue