def _from_hass_temperature(temperature):
 return ((temperature - 154) / 346)

def _from_hass_temperature ( temperature ) : return ( ( temperature - 154 ) / 346 )
convert home assistant color temperature units to percentage .