Trying again with a local host

This commit is contained in:
Jordan Zucker 2024-10-28 10:11:21 -07:00
parent 7736d36f6c
commit 52d0054f9d

View file

@ -1,6 +1,6 @@
import esphome.codegen as cg import esphome.codegen as cg
import esphome.config_validation as cv import esphome.config_validation as cv
from esphome.const import CONF_ID, CONF_LOKI_HOST from esphome.const import CONF_ID
DEPENDENCIES = ["network"] DEPENDENCIES = ["network"]
@ -10,7 +10,7 @@ LokiComponent = loki_component_ns.class_("LokiComponent", cg.Component)
CONFIG_SCHEMA = cv.Schema( CONFIG_SCHEMA = cv.Schema(
{ {
cv.GenerateID(): cv.declare_id(LokiComponent), cv.GenerateID(): cv.declare_id(LokiComponent),
cv.Optional(CONF_LOKI_HOST): cv.url, cv.Optional("loki_host"): cv.url,
} }
).extend(cv.COMPONENT_SCHEMA) ).extend(cv.COMPONENT_SCHEMA)