Ensure `last_event_sensor_type` in SimpliSafe entities is lowercased (#59864)

pull/59869/head
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
1 changed files with 1 additions and 1 deletions

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,
}