Python hass.states.set delete helper name

Hi,
I have a python script that update an helper-switch, here is the code:

hass.states.set('input_boolean.termostato_stato_sistema', 'on')

it basically work and turn on the helper-switch, but it delete name.
This is a screenshoot before executing python:

And this is afer executing python:

as you can see, Name disappear. To restore situation i need to open helper detail and click on Update Button:

And Name is restored.

Any help would be appreciated

Marco

Use a service call to turn the boolean on. Don’t set the state.

Hi,
thanks for suggestion, here is the code:

        hass.services.call('input_boolean', 'turn_on', {'entity_id': 'input_boolean.termostato_stato_sistema' } , False)