diff --git a/LadestationGateway/module.php b/LadestationGateway/module.php index d512d2a..74cf845 100644 --- a/LadestationGateway/module.php +++ b/LadestationGateway/module.php @@ -53,7 +53,7 @@ class LadestationGateway extends IPSModule implements VerbraucherSchnittstelle $this->RegisterPropertyInteger('Betriebsmodus', EaseeLadestatus::BETRIEBSMODUS_EASEE); $this->RegisterPropertyString('Ladestationskennung', ''); $this->RegisterPropertyInteger('MaximalerLadestrom', 16); - $this->RegisterPropertyBoolean('Ladefreigabe', false); + $this->RegisterPropertyBoolean('Ladefreigabe', true); $this->RegisterPropertyBoolean('Solarladen', true); $this->RegisterPropertyBoolean('DiagnosevariablenAnzeigen', false); diff --git a/LadestationStandAlone/module.php b/LadestationStandAlone/module.php index f89e880..c6665e3 100644 --- a/LadestationStandAlone/module.php +++ b/LadestationStandAlone/module.php @@ -51,7 +51,7 @@ class LadestationStandAlone extends IPSModule implements VerbraucherSchnittstell $this->RegisterPropertyString('Passwort', ''); $this->RegisterPropertyInteger('MaximalerLadestrom', 16); $this->RegisterPropertyInteger('Abfrageintervall', 5); - $this->RegisterPropertyBoolean('Ladefreigabe', false); + $this->RegisterPropertyBoolean('Ladefreigabe', true); $this->RegisterPropertyBoolean('Solarladen', true); $this->RegisterPropertyBoolean('DiagnosevariablenAnzeigen', false); diff --git a/tests/EaseeModuleStrukturTest.php b/tests/EaseeModuleStrukturTest.php index 33a0dc7..a94f0ef 100644 --- a/tests/EaseeModuleStrukturTest.php +++ b/tests/EaseeModuleStrukturTest.php @@ -62,6 +62,10 @@ final class EaseeModuleStrukturTest extends TestCase self::assertStringContainsString('implements VerbraucherSchnittstelle', $modul); self::assertStringContainsString('EaseeLadestatus::ausBeobachtungen', $modul); + self::assertStringContainsString( + "RegisterPropertyBoolean('Ladefreigabe', true)", + $modul + ); self::assertStringContainsString("'FahrzeugVerbunden'", $modul); self::assertStringContainsString("'Phasenzahl'", $modul); self::assertStringNotContainsString('7500', $modul); diff --git a/tests/LadestationStandAloneModulstrukturTest.php b/tests/LadestationStandAloneModulstrukturTest.php index ae279f5..c015b79 100644 --- a/tests/LadestationStandAloneModulstrukturTest.php +++ b/tests/LadestationStandAloneModulstrukturTest.php @@ -64,6 +64,10 @@ final class LadestationStandAloneModulstrukturTest extends TestCase { $modul = (string) file_get_contents(self::MODULPFAD . 'module.php'); + self::assertStringContainsString( + "RegisterPropertyBoolean('Ladefreigabe', true)", + $modul + ); self::assertStringContainsString("EnableAction('Ladefreigabe')", $modul); self::assertStringContainsString("EnableAction('Solarladen')", $modul); self::assertStringContainsString("ReadPropertyBoolean('LoggingEin')", $modul);