diff --git a/homeassistant/components/google_mail/sensor.py b/homeassistant/components/google_mail/sensor.py index 8023b9222a0..a65e845095c 100644 --- a/homeassistant/components/google_mail/sensor.py +++ b/homeassistant/components/google_mail/sensor.py @@ -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, ) diff --git a/homeassistant/components/google_mail/strings.json b/homeassistant/components/google_mail/strings.json index eb44bffb134..2f76806dfd3 100644 --- a/homeassistant/components/google_mail/strings.json +++ b/homeassistant/components/google_mail/strings.json @@ -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" + } + } } }