Esphome Lambda Function In Python