From 779634e6eaa999e5c44420447e340a2d1c81376b Mon Sep 17 00:00:00 2001 From: Maikel Punie Date: Thu, 8 Sep 2022 12:58:38 +0200 Subject: [PATCH] Add the type of the channel in the get_channel_info --- velbusaio/channels.py | 1 + 1 file changed, 1 insertion(+) diff --git a/velbusaio/channels.py b/velbusaio/channels.py index 80b62f8..fc60589 100644 --- a/velbusaio/channels.py +++ b/velbusaio/channels.py @@ -131,6 +131,7 @@ def __str__(self): def get_channel_info(self) -> dict[str, Any]: data = {} for key, value in self.__dict__.items(): + data['type'] = self.__class__.__name__ if key not in ["_module", "_writer", "_name_parts", "_on_status_update"]: data[key.replace("_", "", 1)] = value return data