File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -896,11 +896,11 @@ async def clock_synchronize(self) -> bool:
896896 _LOGGER .warning (
897897 "Sync clock of node %s because time drifted %s seconds" ,
898898 self ._mac_in_str ,
899- str ( int (abs (clock_offset .total_seconds () ))),
899+ int (abs (clock_offset .total_seconds ())),
900900 )
901901 if self ._node_protocols is None :
902902 raise NodeError (
903- "Unable to synchronize clock en when protocol version is unknown"
903+ "Unable to synchronize clock when protocol version is unknown"
904904 )
905905
906906 set_request = CircleClockSetRequest (
@@ -1011,10 +1011,6 @@ async def initialize(self) -> bool:
10111011 )
10121012 self ._initialized = False
10131013 return False
1014- if self ._clock_synchronize_task is None or self ._clock_synchronize_task .done ():
1015- self ._clock_synchronize_task = create_task (
1016- self ._clock_synchronize_scheduler ()
1017- )
10181014
10191015 if not self ._calibration and not await self .calibration_update ():
10201016 _LOGGER .debug (
@@ -1039,6 +1035,10 @@ async def initialize(self) -> bool:
10391035 return False
10401036
10411037 await super ().initialize ()
1038+ if self ._clock_synchronize_task is None or self ._clock_synchronize_task .done ():
1039+ self ._clock_synchronize_task = create_task (
1040+ self ._clock_synchronize_scheduler ()
1041+ )
10421042 return True
10431043
10441044 async def node_info_update (
You can’t perform that action at this time.
0 commit comments