Add entity translations to Google Mail (#95312)

This commit is contained in:
Robert Hillis 2023-06-27 04:19:47 -04:00 committed by GitHub
parent 16bcbe3d22
commit 10f116a507
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -21,7 +21,7 @@ SCAN_INTERVAL = timedelta(minutes=15)
SENSOR_TYPE = SensorEntityDescription(
key="vacation_end_date",
name="Vacation end date",
translation_key="vacation_end_date",
icon="mdi:clock",
device_class=SensorDeviceClass.TIMESTAMP,
)

View file

@ -30,5 +30,12 @@
},
"application_credentials": {
"description": "Follow the [instructions]({more_info_url}) for [OAuth consent screen]({oauth_consent_url}) to give Home Assistant access to your Google Mail. You also need to create Application Credentials linked to your account:\n1. Go to [Credentials]({oauth_creds_url}) and click **Create Credentials**.\n1. From the drop-down list select **OAuth client ID**.\n1. Select **Web application** for the Application Type.\n\n"
},
"entity": {
"sensor": {
"vacation_end_date": {
"name": "Vacation end date"
}
}
}
}