From 72b5d1259845af4e7a3ca3c9eb0b0eece30ce363 Mon Sep 17 00:00:00 2001
From: thl-cmk <thl-cmk@outlook.com>
Date: Sun, 31 Dec 2023 10:42:49 +0000
Subject: [PATCH] Delete fritzbox_smarthome.py

---
 .../check_parameters/fritzbox_smarthome.py    | 139 ------------------
 1 file changed, 139 deletions(-)
 delete mode 100644 gui/wato/check_parameters/fritzbox_smarthome.py

diff --git a/gui/wato/check_parameters/fritzbox_smarthome.py b/gui/wato/check_parameters/fritzbox_smarthome.py
deleted file mode 100644
index a102e0e..0000000
--- a/gui/wato/check_parameters/fritzbox_smarthome.py
+++ /dev/null
@@ -1,139 +0,0 @@
-#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-#
-# License: GNU General Public License v2
-#
-# Author: thl-cmk[at]outlook[dot]com
-# URL   : https://thl-cmk.hopto.org
-# Date  : 2023-12-28
-# File  : fritzbox_smarthome.py (WATO check plugin)
-#
-
-
-from cmk.gui.i18n import _
-from cmk.gui.valuespec import (
-    Dictionary,
-    Integer,
-    MonitoringState,
-    Tuple,
-    TextInput,
-)
-from cmk.gui.plugins.wato.utils import (
-    CheckParameterRulespecWithItem,
-    CheckParameterRulespecWithoutItem,
-    RulespecGroupCheckParametersApplications,
-    rulespec_registry,
-)
-
-
-def _parameter_valuespec_fritzbox_smarthome():
-    return Dictionary(
-        title=_('Parameter'),
-        elements=[
-            ('present',
-             MonitoringState(
-                 title=_('Monitoring state for offline devices'),
-                 default_value=1,
-             )),
-        ],
-    )
-
-
-rulespec_registry.register(
-    CheckParameterRulespecWithoutItem(
-        check_group_name="fritzbox_smarthome_single",
-        group=RulespecGroupCheckParametersApplications,
-        match_type="dict",
-        parameter_valuespec=_parameter_valuespec_fritzbox_smarthome,
-        title=lambda: _('Fritz!Box Smarthome Devices')
-    )
-)
-
-rulespec_registry.register(
-    CheckParameterRulespecWithItem(
-        check_group_name="fritzbox_smarthome_multiple",
-        group=RulespecGroupCheckParametersApplications,
-        match_type="dict",
-        parameter_valuespec=_parameter_valuespec_fritzbox_smarthome,
-        title=lambda: _('Fritz!Box Smarthome Devices (with Device-ID)'),
-        item_spec=lambda: TextInput(title=_('Device-ID')),
-    )
-)
-
-
-def _parameter_valuespec_fritzbox_smarthome_thermostat():
-    return Dictionary(
-        title=_('Parameter'),
-        elements=[
-            ('deviation',
-             Tuple(
-                 title=_('Deviation from target temperature'),
-                 help=_('Deviation form target temperature in °C'),
-                 elements=[
-                     Integer(title=_('Warning'), default_value=3, unit=_('°C')),
-                     Integer(title=_('Critical'), default_value=5, unit=_('°C')),
-                 ])),
-            ('state_on_error',
-             MonitoringState(
-                 title=_('Monitoring state on error'),
-                 default_value=1,
-             )),
-        ],
-    )
-
-
-rulespec_registry.register(
-    CheckParameterRulespecWithoutItem(
-        check_group_name="fritzbox_smarthome_thermostat_single",
-        group=RulespecGroupCheckParametersApplications,
-        match_type="dict",
-        parameter_valuespec=_parameter_valuespec_fritzbox_smarthome_thermostat,
-        title=lambda: _('Fritz!Box Smarthome Thermostat'),
-    )
-)
-
-rulespec_registry.register(
-    CheckParameterRulespecWithItem(
-        check_group_name="fritzbox_smarthome_thermostat_multiple",
-        group=RulespecGroupCheckParametersApplications,
-        match_type="dict",
-        parameter_valuespec=_parameter_valuespec_fritzbox_smarthome_thermostat,
-        title=lambda: _('Fritz!Box Smarthome Thermostat (with Device-ID)'),
-        item_spec=lambda: TextInput(title=_('Device-ID')),
-    )
-)
-
-
-def _parameter_valuespec_fritzbox_smarthome_battery():
-    return Dictionary(
-        title=_('Parameter'),
-        elements=[
-            ('battery_low',
-             MonitoringState(
-                 title=_('Monitoring state on low battery'),
-                 default_value=2,
-             )),
-        ],
-    )
-
-
-rulespec_registry.register(
-    CheckParameterRulespecWithoutItem(
-        check_group_name="fritzbox_smarthome_battery_single",
-        group=RulespecGroupCheckParametersApplications,
-        match_type="dict",
-        parameter_valuespec=_parameter_valuespec_fritzbox_smarthome_battery,
-        title=lambda: _('Fritz!Box Smarthome battery')
-    )
-)
-
-rulespec_registry.register(
-    CheckParameterRulespecWithItem(
-        check_group_name="fritzbox_smarthome_battery_multiple",
-        group=RulespecGroupCheckParametersApplications,
-        match_type="dict",
-        parameter_valuespec=_parameter_valuespec_fritzbox_smarthome_battery,
-        title=lambda: _('Fritz!Box Smarthome battery (with Device-ID)'),
-        item_spec=lambda: TextInput(title=_('Device-ID')),
-    )
-)
-- 
GitLab