Skip to content
Snippets Groups Projects
Unverified Commit 94d22c93 authored by Erik Montnemery's avatar Erik Montnemery Committed by GitHub
Browse files

Avoid mutating entity descriptions in tomorrowio (#105975)

parent 77c72f24
Branches
Tags
No related merge requests found
......@@ -92,8 +92,9 @@ class TomorrowioSensorEntityDescription(SensorEntityDescription):
)
if self.value_map is not None:
self.device_class = SensorDeviceClass.ENUM
self.options = [item.name.lower() for item in self.value_map]
options = [item.name.lower() for item in self.value_map]
object.__setattr__(self, "device_class", SensorDeviceClass.ENUM)
object.__setattr__(self, "options", options)
# From https://cfpub.epa.gov/ncer_abstracts/index.cfm/fuseaction/display.files/fileID/14285
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment