diff --git a/custom_components/pstryk/const.py b/custom_components/pstryk/const.py index 944be66..375fddf 100644 --- a/custom_components/pstryk/const.py +++ b/custom_components/pstryk/const.py @@ -1,3 +1,5 @@ +"""Constants for the Pstryk Energy integration.""" + DOMAIN = "pstryk" API_URL = "https://api.pstryk.pl/integrations/" API_TIMEOUT = 60 @@ -8,3 +10,10 @@ SELL_ENDPOINT = "prosumer-pricing/?resolution=hour&window_start={start}&window_e ATTR_BUY_PRICE = "buy_price" ATTR_SELL_PRICE = "sell_price" ATTR_HOURS = "hours" + +# MQTT related constants +DEFAULT_MQTT_TOPIC_BUY = "energy/forecast/buy" +DEFAULT_MQTT_TOPIC_SELL = "energy/forecast/sell" +CONF_MQTT_ENABLED = "mqtt_enabled" +CONF_MQTT_TOPIC_BUY = "mqtt_topic_buy" +CONF_MQTT_TOPIC_SELL = "mqtt_topic_sell"