Add slots to dataclasses in default_config (#91410)
* add dataclass slots to default config items * remove slots from sun mixing
This commit is contained in:
parent
f65e06dc26
commit
f5911bcad6
23 changed files with 32 additions and 32 deletions
|
@ -7,7 +7,7 @@ from typing import Protocol
|
|||
from homeassistant.core import HomeAssistant, callback
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(slots=True)
|
||||
class BoardInfo:
|
||||
"""Board info type."""
|
||||
|
||||
|
@ -17,7 +17,7 @@ class BoardInfo:
|
|||
revision: str | None
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@dataclass(slots=True, frozen=True)
|
||||
class USBInfo:
|
||||
"""USB info type."""
|
||||
|
||||
|
@ -28,7 +28,7 @@ class USBInfo:
|
|||
description: str | None
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@dataclass(slots=True, frozen=True)
|
||||
class HardwareInfo:
|
||||
"""Hardware info type."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue