Skip to content

Commit

Permalink
ixerEntity class, modify the constructor,
Browse files Browse the repository at this point in the history
New constructor method added "many arguments for \"__init__\" of \"CoordinatorEntity\""
  • Loading branch information
jontofront committed Oct 7, 2024
1 parent e6d9d47 commit 7ca145e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions custom_components/econet300/entity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Base econet entity class."""

import logging

from homeassistant.core import callback
Expand All @@ -21,8 +22,16 @@
class EconetEntity(CoordinatorEntity):
"""Representes EconetEntity."""

api: Econet300Api
entity_description: EntityDescription
def __init__(
self,
coordinator: EconetDataCoordinator,
api: Econet300Api,
entity_description: EntityDescription,
):
"""Initialize the Econet entity."""
super().__init__(coordinator)
self.api = api
self.entity_description = entity_description

@property
def has_entity_name(self):
Expand Down Expand Up @@ -103,8 +112,7 @@ def __init__(
idx: int,
):
"""Initialize the MixerEntity."""
super().__init__(description, coordinator, api)

super().__init__(coordinator, api, description)
self._idx = idx

@property
Expand Down

0 comments on commit 7ca145e

Please sign in to comment.