diff --git a/homeassistant/components/ridwell/sensor.py b/homeassistant/components/ridwell/sensor.py index 1eba555e955..e4626831d7d 100644 --- a/homeassistant/components/ridwell/sensor.py +++ b/homeassistant/components/ridwell/sensor.py @@ -27,7 +27,7 @@ ATTR_QUANTITY = "quantity" SENSOR_DESCRIPTION = SensorEntityDescription( key=SENSOR_TYPE_NEXT_PICKUP, - name="Next Ridwell pickup", + translation_key="next_pickup", device_class=SensorDeviceClass.DATE, ) diff --git a/homeassistant/components/ridwell/strings.json b/homeassistant/components/ridwell/strings.json index 3f4cc1806a4..c3cf6365860 100644 --- a/homeassistant/components/ridwell/strings.json +++ b/homeassistant/components/ridwell/strings.json @@ -24,5 +24,17 @@ "already_configured": "[%key:common::config_flow::abort::already_configured_account%]", "reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]" } + }, + "entity": { + "sensor": { + "next_pickup": { + "name": "Next pickup" + } + }, + "switch": { + "opt_in": { + "name": "Opt-in to next pickup" + } + } } } diff --git a/homeassistant/components/ridwell/switch.py b/homeassistant/components/ridwell/switch.py index 7a948f8b883..f47fc1ca0af 100644 --- a/homeassistant/components/ridwell/switch.py +++ b/homeassistant/components/ridwell/switch.py @@ -16,11 +16,9 @@ from .const import DOMAIN from .coordinator import RidwellDataUpdateCoordinator from .entity import RidwellEntity -SWITCH_TYPE_OPT_IN = "opt_in" - SWITCH_DESCRIPTION = SwitchEntityDescription( - key=SWITCH_TYPE_OPT_IN, - name="Opt-in to next pickup", + key="opt_in", + translation_key="opt_in", icon="mdi:calendar-check", )