mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-13 06:34:22 -04:00
Fix mypy checks
This commit is contained in:
parent
3aadb840ab
commit
f007777689
6 changed files with 12 additions and 11 deletions
|
@ -18,17 +18,18 @@ from .hon import HonEntity, unique_entities
|
|||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class HonControlSwitchEntityDescription(SwitchEntityDescription):
|
||||
turn_on_key: str = ""
|
||||
turn_off_key: str = ""
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class HonSwitchEntityDescription(SwitchEntityDescription):
|
||||
pass
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class HonConfigSwitchEntityDescription(SwitchEntityDescription):
|
||||
entity_category: EntityCategory = EntityCategory.CONFIG
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue