diff --git a/homeassistant/components/recollect_waste/__init__.py b/homeassistant/components/recollect_waste/__init__.py index 57bd346c91b..10d39c1fc40 100644 --- a/homeassistant/components/recollect_waste/__init__.py +++ b/homeassistant/components/recollect_waste/__init__.py @@ -1,4 +1,4 @@ -"""The Recollect Waste integration.""" +"""The ReCollect Waste integration.""" import asyncio from datetime import date, timedelta from typing import List @@ -41,7 +41,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ) except RecollectError as err: raise UpdateFailed( - f"Error while requesting data from Recollect: {err}" + f"Error while requesting data from ReCollect: {err}" ) from err coordinator = DataUpdateCoordinator( diff --git a/homeassistant/components/recollect_waste/config_flow.py b/homeassistant/components/recollect_waste/config_flow.py index f0d1527a0fb..402c143706e 100644 --- a/homeassistant/components/recollect_waste/config_flow.py +++ b/homeassistant/components/recollect_waste/config_flow.py @@ -1,4 +1,4 @@ -"""Config flow for Recollect Waste integration.""" +"""Config flow for ReCollect Waste integration.""" from aiorecollect.client import Client from aiorecollect.errors import RecollectError import voluptuous as vol @@ -19,7 +19,7 @@ DATA_SCHEMA = vol.Schema( class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): - """Handle a config flow for Recollect Waste.""" + """Handle a config flow for ReCollect Waste.""" VERSION = 1 CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL diff --git a/homeassistant/components/recollect_waste/const.py b/homeassistant/components/recollect_waste/const.py index 8012bdbb02b..4a6c9dbda6c 100644 --- a/homeassistant/components/recollect_waste/const.py +++ b/homeassistant/components/recollect_waste/const.py @@ -1,4 +1,4 @@ -"""Define Recollect Waste constants.""" +"""Define ReCollect Waste constants.""" import logging DOMAIN = "recollect_waste" diff --git a/homeassistant/components/recollect_waste/sensor.py b/homeassistant/components/recollect_waste/sensor.py index 53304c93218..405d66989bb 100644 --- a/homeassistant/components/recollect_waste/sensor.py +++ b/homeassistant/components/recollect_waste/sensor.py @@ -1,4 +1,4 @@ -"""Support for Recollect Waste sensors.""" +"""Support for ReCollect Waste sensors.""" from typing import Callable import voluptuous as vol @@ -20,7 +20,7 @@ ATTR_AREA_NAME = "area_name" ATTR_NEXT_PICKUP_TYPES = "next_pickup_types" ATTR_NEXT_PICKUP_DATE = "next_pickup_date" -DEFAULT_ATTRIBUTION = "Pickup data provided by Recollect Waste" +DEFAULT_ATTRIBUTION = "Pickup data provided by ReCollect Waste" DEFAULT_NAME = "recollect_waste" DEFAULT_ICON = "mdi:trash-can-outline" @@ -43,7 +43,7 @@ async def async_setup_platform( ): """Import Awair configuration from YAML.""" LOGGER.warning( - "Loading Recollect Waste via platform setup is deprecated. " + "Loading ReCollect Waste via platform setup is deprecated. " "Please remove it from your configuration." ) hass.async_create_task( @@ -58,13 +58,13 @@ async def async_setup_platform( async def async_setup_entry( hass: HomeAssistant, entry: ConfigEntry, async_add_entities: Callable ) -> None: - """Set up Recollect Waste sensors based on a config entry.""" + """Set up ReCollect Waste sensors based on a config entry.""" coordinator = hass.data[DOMAIN][DATA_COORDINATOR][entry.entry_id] - async_add_entities([RecollectWasteSensor(coordinator, entry)]) + async_add_entities([ReCollectWasteSensor(coordinator, entry)]) -class RecollectWasteSensor(CoordinatorEntity): - """Recollect Waste Sensor.""" +class ReCollectWasteSensor(CoordinatorEntity): + """ReCollect Waste Sensor.""" def __init__(self, coordinator: DataUpdateCoordinator, entry: ConfigEntry) -> None: """Initialize the sensor.""" diff --git a/tests/components/recollect_waste/test_config_flow.py b/tests/components/recollect_waste/test_config_flow.py index bec87b72ee4..1f17e1f60d2 100644 --- a/tests/components/recollect_waste/test_config_flow.py +++ b/tests/components/recollect_waste/test_config_flow.py @@ -1,4 +1,4 @@ -"""Define tests for the Recollect Waste config flow.""" +"""Define tests for the ReCollect Waste config flow.""" from aiorecollect.errors import RecollectError from homeassistant import data_entry_flow