mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Update ReCollect docs to use proper name (#44291)
This commit is contained in:
parent
97894bd718
commit
d18c9f1c74
@ -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(
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
"""Define Recollect Waste constants."""
|
||||
"""Define ReCollect Waste constants."""
|
||||
import logging
|
||||
|
||||
DOMAIN = "recollect_waste"
|
||||
|
@ -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."""
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user