Problem (warnings about unit handling) with sitemap after update v3.4.5 to 4.1

Hi,

I have just updated my Openhabian from v3.4.5 to v4.1. Everything seems to work fine but when I call up a part of my sitemap, I get errors that I don’t quite know what to do with.

These are texts that are made visible depending on a string item with different replacement texts on the right side.
By placing the replacement text in the square brackets, the replacement text always appears right-aligned, just like the original value.

In v3.4.5 this was not a problem, how could I adjust this in v4.1 to achieve the same behaviour without warning ?

    Number:Temperature          IFO2R_Dest           "Soll [%.1f °C]"                                   <temperature>       (IFO2_Radiator,OG_RadiatorDestinations)                         ["Temperature"]         { unit="°C",    channel="zwave:device:z_wave_ctrl_01:node97:thermostat_setpoint_heating" }
					Text 		item=IFO2R_Dest          label="Betriebsart: 'Tag' [(soll = %.1f °C)]" 		visibility=[IFO2R_Mode_Valve=="Tag"] 	     		icon="temperature_hot"
					Text 		item=IFO2R_Dest          label="Betriebsart: 'Nacht' [(soll = %.1f °C)]" 	visibility=[IFO2R_Mode_Valve=="Nacht"]	     		icon="temperature_cold"
					Text 		item=IFO2R_Dest          label="Betriebsart: 'Aus' [(soll = --- °C)]" 		visibility=[IFO2R_Mode_Valve=="Aus"] 	     		icon="temperature_off"
					Text 		item=IFO2R_Dest          label="Betriebsart: 'Heizen' [(soll = 100 °C)]" 	visibility=[IFO2R_Mode_Valve=="Heizen"]	     		icon="temperature_veryhot"
					Text 		item=IFO2R_Dest          label="Betriebsart: 'Manuell' [(soll = %.1f °C)]" 	visibility=[IFO2R_Mode_Valve=="Manuell"] 	 		icon="temperature_hot"
					Text 		item=IFO2R_Dest          label="'Fenster auf' [Heizung aus]"              	visibility=[IFO2R_Mode_Valve=="FensterAuf"]  		icon="openwindow"
					Text 		item=IFO2R_Dest          label="'Sommerabschaltung' [Heizung aus]"       	visibility=[IFO2R_Mode_Valve=="Sommerabschaltung"]  icon="temperature_off"
2024-01-02 17:03:31.275 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern '(soll = --- °C)', dropping postfix
2024-01-02 17:03:31.277 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern '(soll = --- °C)', dropping postfix
2024-01-02 17:03:31.278 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern '(soll = --- °C)', dropping postfix
2024-01-02 17:03:31.279 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern '(soll = --- °C)', dropping postfix
2024-01-02 17:03:31.281 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern '(soll = 100 °C)', dropping postfix
2024-01-02 17:03:31.282 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern '(soll = 100 °C)', dropping postfix
2024-01-02 17:03:31.283 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern '(soll = 100 °C)', dropping postfix
2024-01-02 17:03:31.284 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern '(soll = 100 °C)', dropping postfix
2024-01-02 17:03:31.287 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern 'Heizung aus', dropping postfix
2024-01-02 17:03:31.289 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern 'Heizung aus', dropping postfix
2024-01-02 17:03:31.290 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern 'Heizung aus', dropping postfix
2024-01-02 17:03:31.291 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern 'Heizung aus', dropping postfix
2024-01-02 17:03:31.292 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern 'Heizung aus', dropping postfix
2024-01-02 17:03:31.293 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern 'Heizung aus', dropping postfix
2024-01-02 17:03:31.294 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern 'Heizung aus', dropping postfix
2024-01-02 17:03:31.295 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Item 'IFO2R_Dest' with unit, nothing allowed after unit in label pattern 'Heizung aus', dropping postfix

Probably the unexpected parenthesis you put around your pattern.

You mean the square brackets? Well - they are not unexpected, but the new system seems to handle the units a bit differently now and I would like to try to keep the previous display behaviour.

If you mean the round brackets: The error also occurs if there are no round brackets. It seems this is due to the interpretation of the content between the square brackets when it differs from the assigned unit.