* Fixed integration with ESPhome, which caused an error if ESPhome did not update fast enough on startup * Set state to problem if sensor is unavailable * Fix line length.
* Fixed integration with ESPhome, which caused an error if ESPhome did not update fast enough on startup * Set state to problem if sensor is unavailable * Fix line length.