mirror of
https://github.com/home-assistant/core.git
synced 2026-05-30 04:05:01 +01:00
33 lines
814 B
Python
33 lines
814 B
Python
"""Constants for the Twente Milieu integration."""
|
|
|
|
from datetime import timedelta
|
|
import logging
|
|
from typing import Final
|
|
|
|
from twentemilieu import WasteType
|
|
|
|
DOMAIN: Final = "twentemilieu"
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
SCAN_INTERVAL = timedelta(hours=1)
|
|
|
|
CONF_POST_CODE = "post_code"
|
|
CONF_HOUSE_NUMBER = "house_number"
|
|
CONF_HOUSE_LETTER = "house_letter"
|
|
|
|
WASTE_TYPE_TO_DESCRIPTION = {
|
|
WasteType.NON_RECYCLABLE: "Non-recyclable waste pickup",
|
|
WasteType.ORGANIC: "Organic waste pickup",
|
|
WasteType.PACKAGES: "Packages waste pickup",
|
|
WasteType.PAPER: "Paper waste pickup",
|
|
WasteType.TREE: "Christmas tree pickup",
|
|
}
|
|
|
|
SENSOR_UNIQUE_ID_MIGRATION = {
|
|
"tree": "tree",
|
|
"Non-recyclable": "non_recyclable",
|
|
"Organic": "organic",
|
|
"Paper": "paper",
|
|
"Plastic": "packages",
|
|
}
|