powerocean/custom_components/powerocean/const.py
niltrip 4395fb6f13 documentation
default 10s
2024-08-27 19:13:07 +02:00

37 lines
1.1 KiB
Python

"""Constants for the PowerOcean integration."""
import logging
from homeassistant.const import Platform
DOMAIN = "powerocean"
NAME = "Ecoflow PowerOcean"
VERSION = "2024.08.27"
ISSUE_URL = "https://github.com/niltrip/powerocean/issues"
ISSUE_URL_ERROR_MESSAGE = " Please log any issues here: " + ISSUE_URL
PLATFORMS: list[Platform] = [Platform.SENSOR]
_LOGGER = logging.getLogger("custom_components.powerocean")
ATTR_PRODUCT_DESCRIPTION = "Product Description"
ATTR_DESTINATION_NAME = "Destination Name"
ATTR_SOURCE_NAME = "Source Name"
ATTR_UNIQUE_ID = "Internal Unique ID"
ATTR_PRODUCT_VENDOR = "Vendor"
ATTR_PRODUCT_SERIAL = "Vendor Product Serial"
ATTR_PRODUCT_NAME = "Device Name"
ATTR_PRODUCT_VERSION = "Vendor Firmware Version"
ATTR_PRODUCT_BUILD = "Vendor Product Build"
ATTR_PRODUCT_FEATURES = "Vendor Product Features"
STARTUP_MESSAGE = f"""
----------------------------------------------------------------------------
{NAME}
Version: {VERSION}
Domain: {DOMAIN}
If you have any issues with this custom component please open an issue here:
{ISSUE_URL}
----------------------------------------------------------------------------
"""