From c48194b0bda091f21dc72f4f2ec055417b78938e Mon Sep 17 00:00:00 2001
From: Thomas Juerges <4-jurges@users.noreply.git.astron.nl>
Date: Fri, 2 Apr 2021 20:31:53 +0200
Subject: [PATCH] In Initialise the first state is INIT, after successful init
 the state is STANDBY

---
 devices/src/hardware_device.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/devices/src/hardware_device.py b/devices/src/hardware_device.py
index adcf42a5a..29636f5d0 100644
--- a/devices/src/hardware_device.py
+++ b/devices/src/hardware_device.py
@@ -80,9 +80,11 @@ class hardware_device(Device):
 
 		:return:None
 		"""
+		self.set_state(DevState.INIT)
 		self.setup_value_dict()
 		self.initialise()
-		self.set_state(DevState.INIT)
+		self.standby()
+		self.set_state(DevState.STANDBY)
 
 	@only_in_states([DevState.INIT])
 	def Standby(self):
-- 
GitLab