Skip to content

Commit

Permalink
Add the type of the channel in the get_channel_info
Browse files Browse the repository at this point in the history
  • Loading branch information
cereal2nd committed Sep 8, 2022
1 parent 5b3e8fd commit 779634e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions velbusaio/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 779634e

Please sign in to comment.