RF light and its state in HA failed to updated by rest_command

Hi,
I have a RF Fan and light, which I sync its status once manual wall switch used by automation base on light sensor value and rest_command to change its state in HA. It works well for years. However with recently HA update (now I’m on latest 2021.2.3) above method does not work anymore.
The automation still change the light’s status but within a minute or so HA restore the light status to its last state (the state set by HA) even thought I customized the light’s attribute “assumed_state” to false
I just wonder if i missed something or there is a bug in recent HA update. Anyone have IR device may have same situation

Thank you for your help.