@@ -786,8 +786,14 @@ async def initialize(self) -> bool:
786786 if self ._initialized :
787787 _LOGGER .debug ("Already initialized node %s" , self ._mac_in_str )
788788 return True
789- self ._initialized = True
790789
790+ if isinstance (self , PlugwiseCircle ) and not await self .clock_synchronize ():
791+ _LOGGER .debug (
792+ "Failed to initialized node %s, failed clock sync" ,
793+ self ._mac_in_str
794+ )
795+ self ._initialized = False
796+ return False
791797 if not self ._calibration and not await self .calibration_update ():
792798 _LOGGER .debug (
793799 "Failed to initialized node %s, no calibration" ,
@@ -800,13 +806,6 @@ async def initialize(self) -> bool:
800806 "Failed to retrieve node info for %s" ,
801807 self ._mac_in_str
802808 )
803- if not await self .clock_synchronize ():
804- _LOGGER .debug (
805- "Failed to initialized node %s, failed clock sync" ,
806- self ._mac_in_str
807- )
808- self ._initialized = False
809- return False
810809 if (
811810 NodeFeature .RELAY_INIT in self ._features and
812811 self ._relay_init_state is None
@@ -820,7 +819,7 @@ async def initialize(self) -> bool:
820819 )
821820 self ._initialized = False
822821 return False
823- return True
822+ return await super (). initialize ()
824823
825824 async def node_info_update (
826825 self , node_info : NodeInfoResponse | None = None
0 commit comments