mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-13 06:34:22 -04:00
Fix some small bugs
This commit is contained in:
parent
bb700dd2f7
commit
c0d25a4efe
4 changed files with 11 additions and 17 deletions
|
@ -16,17 +16,10 @@ _LOGGER = logging.getLogger(__name__)
|
|||
|
||||
|
||||
@dataclass
|
||||
class HonBinarySensorEntityDescriptionMixin:
|
||||
class HonBinarySensorEntityDescription(BinarySensorEntityDescription):
|
||||
on_value: str | float = ""
|
||||
|
||||
|
||||
@dataclass
|
||||
class HonBinarySensorEntityDescription(
|
||||
HonBinarySensorEntityDescriptionMixin, BinarySensorEntityDescription
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = {
|
||||
"WM": (
|
||||
HonBinarySensorEntityDescription(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue