def _to_hass_temperature(temperature):
 return (int((temperature * 346)) + 154)

def _to_hass_temperature ( temperature ) : return ( int ( ( temperature * 346 ) ) + 154 )
convert percentage to home assistant color temperature units .