Skip to content

Commit 82c536a

Browse files
authored
Migrate Matter descriptions to be kw_only (home-assistant#154398)
1 parent 97afec1 commit 82c536a

File tree

17 files changed

+19
-19
lines changed

17 files changed

+19
-19
lines changed

homeassistant/components/matter/binary_sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async def async_setup_entry(
3535
matter.register_platform_handler(Platform.BINARY_SENSOR, async_add_entities)
3636

3737

38-
@dataclass(frozen=True)
38+
@dataclass(frozen=True, kw_only=True)
3939
class MatterBinarySensorEntityDescription(
4040
BinarySensorEntityDescription, MatterEntityDescription
4141
):

homeassistant/components/matter/button.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async def async_setup_entry(
3333
matter.register_platform_handler(Platform.BUTTON, async_add_entities)
3434

3535

36-
@dataclass(frozen=True)
36+
@dataclass(frozen=True, kw_only=True)
3737
class MatterButtonEntityDescription(ButtonEntityDescription, MatterEntityDescription):
3838
"""Describe Matter Button entities."""
3939

homeassistant/components/matter/climate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ async def async_setup_entry(
183183
matter.register_platform_handler(Platform.CLIMATE, async_add_entities)
184184

185185

186-
@dataclass(frozen=True)
186+
@dataclass(frozen=True, kw_only=True)
187187
class MatterClimateEntityDescription(ClimateEntityDescription, MatterEntityDescription):
188188
"""Describe Matter Climate entities."""
189189

homeassistant/components/matter/cover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def async_setup_entry(
6262
matter.register_platform_handler(Platform.COVER, async_add_entities)
6363

6464

65-
@dataclass(frozen=True)
65+
@dataclass(frozen=True, kw_only=True)
6666
class MatterCoverEntityDescription(CoverEntityDescription, MatterEntityDescription):
6767
"""Describe Matter Cover entities."""
6868

homeassistant/components/matter/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async def wrapper(self: MatterEntity, *args: P.args, **kwargs: P.kwargs) -> _R:
5454
return wrapper
5555

5656

57-
@dataclass(frozen=True)
57+
@dataclass(frozen=True, kw_only=True)
5858
class MatterEntityDescription(EntityDescription):
5959
"""Describe the Matter entity."""
6060

homeassistant/components/matter/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def async_setup_entry(
4747
matter.register_platform_handler(Platform.EVENT, async_add_entities)
4848

4949

50-
@dataclass(frozen=True)
50+
@dataclass(frozen=True, kw_only=True)
5151
class MatterEventEntityDescription(EventEntityDescription, MatterEntityDescription):
5252
"""Describe Matter Event entities."""
5353

homeassistant/components/matter/fan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async def async_setup_entry(
5353
matter.register_platform_handler(Platform.FAN, async_add_entities)
5454

5555

56-
@dataclass(frozen=True)
56+
@dataclass(frozen=True, kw_only=True)
5757
class MatterFanEntityDescription(FanEntityDescription, MatterEntityDescription):
5858
"""Describe Matter Fan entities."""
5959

homeassistant/components/matter/light.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async def async_setup_entry(
8686
matter.register_platform_handler(Platform.LIGHT, async_add_entities)
8787

8888

89-
@dataclass(frozen=True)
89+
@dataclass(frozen=True, kw_only=True)
9090
class MatterLightEntityDescription(LightEntityDescription, MatterEntityDescription):
9191
"""Describe Matter Light entities."""
9292

homeassistant/components/matter/lock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async def async_setup_entry(
5353
matter.register_platform_handler(Platform.LOCK, async_add_entities)
5454

5555

56-
@dataclass(frozen=True)
56+
@dataclass(frozen=True, kw_only=True)
5757
class MatterLockEntityDescription(LockEntityDescription, MatterEntityDescription):
5858
"""Describe Matter Lock entities."""
5959

homeassistant/components/matter/number.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def async_setup_entry(
4444
matter.register_platform_handler(Platform.NUMBER, async_add_entities)
4545

4646

47-
@dataclass(frozen=True)
47+
@dataclass(frozen=True, kw_only=True)
4848
class MatterNumberEntityDescription(NumberEntityDescription, MatterEntityDescription):
4949
"""Describe Matter Number Input entities."""
5050

0 commit comments

Comments
 (0)