Skip to content

Commit

Permalink
Freeze dataclass
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbede committed Dec 16, 2023
1 parent ef31461 commit 40c5666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/sun/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
ENTITY_ID_SENSOR_FORMAT = SENSOR_DOMAIN + ".sun_{}"


@dataclass(kw_only=True)
@dataclass(kw_only=True, frozen=True)
class SunSensorEntityDescription(SensorEntityDescription):

Check failure on line 30 in homeassistant/components/sun/sensor.py

View workflow job for this annotation

GitHub Actions / Check mypy

Cannot inherit frozen dataclass from a non-frozen one [misc]
"""Describes a Sun sensor entity."""

Expand Down

0 comments on commit 40c5666

Please sign in to comment.