From ccc00784e72a238b19467ccd2cb9d1672079d4d8 Mon Sep 17 00:00:00 2001 From: Ricardo Bartels Date: Sat, 13 Jul 2024 11:53:45 +0200 Subject: [PATCH] fixes type annotation in homeauto --- fritzinfluxdb/classes/fritzbox/service_definitions/homeauto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fritzinfluxdb/classes/fritzbox/service_definitions/homeauto.py b/fritzinfluxdb/classes/fritzbox/service_definitions/homeauto.py index 24b5b1c..0e195b6 100644 --- a/fritzinfluxdb/classes/fritzbox/service_definitions/homeauto.py +++ b/fritzinfluxdb/classes/fritzbox/service_definitions/homeauto.py @@ -82,7 +82,7 @@ test_start_ts = datetime.now().timestamp() -def force_int(data, path: string, default: int = 0): +def force_int(data, path: str, default: int = 0): """ cast 'path' in data (object) to integer, if this fails return default