diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-12-02 18:56:38 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-12-02 18:56:38 +0300 |
commit | 20a34d72f2cabe868cceeb16c53c51120d7348b2 (patch) | |
tree | cdec233eac37fc892d046750c9f2c56f9658069b /src/sensors_bot.py | |
parent | e283fcf261206a8296515c7196042db11352a19b (diff) |
sensors_bot: increase api timeout
Diffstat (limited to 'src/sensors_bot.py')
-rwxr-xr-x | src/sensors_bot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sensors_bot.py b/src/sensors_bot.py index c7fe19a..dc081b0 100755 --- a/src/sensors_bot.py +++ b/src/sensors_bot.py @@ -111,7 +111,7 @@ def callback_handler(ctx: bot.Context) -> None: sensor = TemperatureSensorLocation[match.group(1).upper()] hours = int(match.group(2)) - api = WebAPIClient() + api = WebAPIClient(timeout=20) data = api.get_sensors_data(sensor, hours) title = ctx.lang(sensor.name.lower()) + ' (' + ctx.lang('n_hrs', hours) + ')' |