mirror of
https://github.com/Andre0512/hon.git
synced 2026-06-19 20:46:53 +02:00
Fix mypy checks
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user