* Add "esphome rename" command
* Only open file once
* Update esphome/__main__.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Add final return
* Use match.group consistently
* Validate name characters
* Add whitespace to regex so it is only replacing exact match
* Validate yaml config file after manipulation
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>