From 5fd90ed745487be604fccb6d3d6a6df6a339d687 Mon Sep 17 00:00:00 2001 From: Simon Berger Date: Sun, 13 Aug 2023 23:05:44 +0000 Subject: [PATCH] ruff is always right --- custom_components/vzug/api.py | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/custom_components/vzug/api.py b/custom_components/vzug/api.py index 922f28f..49d9623 100644 --- a/custom_components/vzug/api.py +++ b/custom_components/vzug/api.py @@ -84,19 +84,14 @@ class CommandValue(typing.TypedDict): ) -AiFwVersion = typing.TypedDict( - "AiFwVersion", - { - "fn": str, - "SW": str, - "SD": str, - "HW": str, - "apiVersion": str, - "phy": str, - "deviceUuid": str, - }, - total=False, -) +class AiFwVersion(typing.TypedDict, total=False): + fn: str + SW: str + SD: str + HW: str + apiVersion: str + phy: str + deviceUuid: str class VZugApi: