Call set_state changes name of switch in frontend

Hi there!

Calling self.set_state(switch_entity, state) resets the switch’s friendly name in frontend to its id name (haven’t checked other entity types). Same holds for self.call_service("state/set",.... When you toggle the switch in frontend, its original name reappears.

I’ve searched around and found little. I’ve looked at the AppDaemon code, but it seems to me the problem lies outside AppDaemon?

Does anybody have any information about this?