mirror of
https://github.com/home-assistant/core.git
synced 2025-08-13 17:45:19 +02:00
Add flags to EntityDescriptions in Tessie (#105847)
* Add SensorEntityDescription flags * fix datclass attributes
This commit is contained in:
@@ -19,7 +19,7 @@ from .coordinator import TessieDataUpdateCoordinator
|
|||||||
from .entity import TessieEntity
|
from .entity import TessieEntity
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class TessieBinarySensorEntityDescription(BinarySensorEntityDescription):
|
class TessieBinarySensorEntityDescription(BinarySensorEntityDescription):
|
||||||
"""Describes Tessie binary sensor entity."""
|
"""Describes Tessie binary sensor entity."""
|
||||||
|
|
||||||
|
@@ -32,7 +32,7 @@ from .coordinator import TessieDataUpdateCoordinator
|
|||||||
from .entity import TessieEntity
|
from .entity import TessieEntity
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class TessieSensorEntityDescription(SensorEntityDescription):
|
class TessieSensorEntityDescription(SensorEntityDescription):
|
||||||
"""Describes Tessie Sensor entity."""
|
"""Describes Tessie Sensor entity."""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user