|
@@ -30,7 +30,6 @@ def parse_p1(string_table):
|
|
|
|
|
|
|
|
return data
|
|
return data
|
|
|
|
|
|
|
|
-
|
|
|
|
|
agent_section_p1 = AgentSection(
|
|
agent_section_p1 = AgentSection(
|
|
|
name="p1",
|
|
name="p1",
|
|
|
parse_function=parse_p1,
|
|
parse_function=parse_p1,
|
|
@@ -42,7 +41,6 @@ def discover_p1_tariff(section):
|
|
|
if section is not None and "active_tariff" in section:
|
|
if section is not None and "active_tariff" in section:
|
|
|
yield Service()
|
|
yield Service()
|
|
|
|
|
|
|
|
-
|
|
|
|
|
def check_p1_tariff(section):
|
|
def check_p1_tariff(section):
|
|
|
tariff = section.get("active_tariff")
|
|
tariff = section.get("active_tariff")
|
|
|
|
|
|
|
@@ -58,7 +56,6 @@ def check_p1_tariff(section):
|
|
|
summary=f"Tariff: {tariff}",
|
|
summary=f"Tariff: {tariff}",
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
-
|
|
|
|
|
check_plugin_p1_tariff = CheckPlugin(
|
|
check_plugin_p1_tariff = CheckPlugin(
|
|
|
name="p1_tariff",
|
|
name="p1_tariff",
|
|
|
sections=["p1"],
|
|
sections=["p1"],
|
|
@@ -263,7 +260,6 @@ def check_p1_energy(item, section):
|
|
|
summary=f"{item} energy data available",
|
|
summary=f"{item} energy data available",
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
-
|
|
|
|
|
check_plugin_p1_energy = CheckPlugin(
|
|
check_plugin_p1_energy = CheckPlugin(
|
|
|
name="p1_energy",
|
|
name="p1_energy",
|
|
|
sections=["p1"],
|
|
sections=["p1"],
|
|
@@ -292,7 +288,6 @@ def check_p1_gas(section):
|
|
|
boundaries=(0, None),
|
|
boundaries=(0, None),
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
-
|
|
|
|
|
check_plugin_p1_gas = CheckPlugin(
|
|
check_plugin_p1_gas = CheckPlugin(
|
|
|
name="p1_gas",
|
|
name="p1_gas",
|
|
|
sections=["p1"],
|
|
sections=["p1"],
|