2019-07-14 10:30:23 +00:00
|
|
|
"""Constants for the Twente Milieu integration."""
|
2021-11-13 14:34:09 +00:00
|
|
|
from datetime import timedelta
|
|
|
|
import logging
|
|
|
|
from typing import Final
|
2019-07-14 10:30:23 +00:00
|
|
|
|
2022-03-20 19:37:01 +00:00
|
|
|
from twentemilieu import WasteType
|
|
|
|
|
2021-11-13 14:34:09 +00:00
|
|
|
DOMAIN: Final = "twentemilieu"
|
2019-07-14 10:30:23 +00:00
|
|
|
|
2021-11-13 14:34:09 +00:00
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
SCAN_INTERVAL = timedelta(hours=1)
|
2019-07-14 10:30:23 +00:00
|
|
|
|
|
|
|
CONF_POST_CODE = "post_code"
|
|
|
|
CONF_HOUSE_NUMBER = "house_number"
|
|
|
|
CONF_HOUSE_LETTER = "house_letter"
|
2022-03-20 19:37:01 +00:00
|
|
|
|
|
|
|
WASTE_TYPE_TO_DESCRIPTION = {
|
2022-07-09 21:40:55 +00:00
|
|
|
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",
|
2022-03-20 19:37:01 +00:00
|
|
|
}
|