Fixes https://github.com/esphome/feature-requests/issues/460 Co-authored-by: Otto Winter <otto@otto-winter.com>