From 8fb6b7e139c34da005c21d067edd4bf521527a63 Mon Sep 17 00:00:00 2001
From: Auke Klazema <klazema@astron.nl>
Date: Thu, 14 Apr 2022 08:51:37 +0200
Subject: [PATCH] L2SS-704: Turn off turn on RECV device in intergration test

---
 .../tangostationcontrol/devices/lofar_device.py                | 3 ++-
 .../default/devices/test_device_antennafield.py                | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tangostationcontrol/tangostationcontrol/devices/lofar_device.py b/tangostationcontrol/tangostationcontrol/devices/lofar_device.py
index cc276428d..6f0f1de56 100644
--- a/tangostationcontrol/tangostationcontrol/devices/lofar_device.py
+++ b/tangostationcontrol/tangostationcontrol/devices/lofar_device.py
@@ -143,11 +143,12 @@ class lofar_device(Device, metaclass=DeviceMeta):
     @log_exceptions()
     def Initialise(self):
         """
-        Command to ask for initialisation of this device. Can only be called in FAULT or OFF state.
+        Command to ask for initialisation of this device. Can only be called in OFF state.
 
         :return:None
         """
 
+        
         self.set_state(DevState.INIT)
         self.set_status("Device is in the INIT state.")
 
diff --git a/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_antennafield.py b/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_antennafield.py
index b41a75047..2b34767d6 100644
--- a/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_antennafield.py
+++ b/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_antennafield.py
@@ -17,6 +17,7 @@ class TestAntennaFieldDevice(AbstractTestBases.TestDeviceBase):
         super().setUp("STAT/AntennaField/1")
         self.proxy.put_property({"RECV_devices": ["STAT/RECV/1"],
                                  "HBAT_Power_to_RECV_mapping": [1, 1, 1, 0] + [-1] * 92})
+        self.recv_proxy = self.setup_recv_proxy()
 
     def setup_recv_proxy(self):
         # setup RECV
@@ -27,6 +28,5 @@ class TestAntennaFieldDevice(AbstractTestBases.TestDeviceBase):
         return recv_proxy
 
     def test_property_recv_devices_has_one_receiver(self):
-        self.proxy.warm_boot()
         result = self.proxy.get_property("RECV_devices")
         self.assertSequenceEqual(result["RECV_devices"], ["STAT/RECV/1"])
-- 
GitLab