From ab8686c2dd2bb7a44b0ec3bae4524cc4472af0df Mon Sep 17 00:00:00 2001 From: rgc99 Date: Sat, 21 Oct 2023 22:07:36 +0000 Subject: [PATCH] Define test params in init --- .../irrigation_unlimited/irrigation_unlimited.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/custom_components/irrigation_unlimited/irrigation_unlimited.py b/custom_components/irrigation_unlimited/irrigation_unlimited.py index 4d0ec8e..987d802 100644 --- a/custom_components/irrigation_unlimited/irrigation_unlimited.py +++ b/custom_components/irrigation_unlimited/irrigation_unlimited.py @@ -4057,6 +4057,12 @@ class IUTester: def __init__(self, coordinator: "IUCoordinator") -> None: # Passed parameters self._coordinator = coordinator + # Config parameters + self._enabled: bool = False + self._speed: float = None + self._output_events: bool = None + self._show_log: bool = None + self._autoplay: bool = None # Private variables self._tests: list[IUTest] = [] self._test_initialised = False