There is no availability option in the GUI. So you would have to do this for the state template:
{% if has_value('sensor.shellyplusht_kasse_temperature') and
has_value('sensor.shellyplusht_kasse_humidity') %}
{{ ( 1000*e**(19.016-(4064.95/(states('sensor.shellyplusht_kasse_temperature') | float(0) +236.25)))*100/(461.66*(states('sensor.shellyplusht_kasse_temperature') | float(1) +273.15)) * (states('sensor.shellyplusht_kasse_humidity') | float(0))/100 ) | round (2) }}
{% else %}
{{ this.state }}
{% endif %}
This will keep that last known good state if one of the sensors becomes unavailable.
Note I did not actually check the maths or syntax in your template. .