From aaa56a6c1fdaaba1ae17e4814a2642aa52e0c60c Mon Sep 17 00:00:00 2001 From: sfstar Date: Wed, 29 Jan 2025 19:13:51 +0000 Subject: [PATCH] resolve comment related findings to check if this resolves docstring reports --- custom_components/victron/base.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/custom_components/victron/base.py b/custom_components/victron/base.py index 394b31a..06f2efd 100644 --- a/custom_components/victron/base.py +++ b/custom_components/victron/base.py @@ -1,5 +1,4 @@ -""" -This module defines entity descriptions for Victron components. +"""Module defines entity descriptions for Victron components. Classes: VictronBaseEntityDescription: Describes a base entity for Victron components. @@ -10,13 +9,15 @@ slave (int): The slave identifier. value_fn (Callable[[dict], StateType]): A function to extract the value from data. - Methods: +Methods: lambda_func(): Returns a lambda function to extract data based on slave and key. VictronWriteBaseEntityDescription: Attributes: address (int): The address for the writable entity. + """ + from collections.abc import Callable from dataclasses import dataclass