Ensure last_event_sensor_type in SimpliSafe entities is lowercased ()

This commit is contained in:
Aaron Bach 2021-11-17 16:37:53 -07:00 committed by GitHub
parent 6175f1b6f3
commit 279ded3562
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -588,7 +588,7 @@ class SimpliSafeEntity(CoordinatorEntity):
self._attr_extra_state_attributes = {
ATTR_LAST_EVENT_INFO: event.get("info"),
ATTR_LAST_EVENT_SENSOR_NAME: event.get("sensorName"),
ATTR_LAST_EVENT_SENSOR_TYPE: device_type.name,
ATTR_LAST_EVENT_SENSOR_TYPE: device_type.name.lower(),
ATTR_LAST_EVENT_TIMESTAMP: event.get("eventTimestamp"),
ATTR_SYSTEM_ID: system.system_id,
}