Explicitly opt-in to device name in the season integration (#94845)

This commit is contained in:
Erik Montnemery 2023-06-19 11:47:44 +02:00 committed by GitHub
parent 76a5e6d7ce
commit c7d636a371
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,6 +94,7 @@ class SeasonSensorEntity(SensorEntity):
_attr_device_class = SensorDeviceClass.ENUM
_attr_has_entity_name = True
_attr_name = None
_attr_options = ["spring", "summer", "autumn", "winter"]
_attr_translation_key = "season"