Add sensor platform to goalzero (#49835)

* Add sensor platform to goalzero

* Tweak

* Remove unused DATA_SCHEMA

* Simplify

* Remove last_reset

* Update on reload
This commit is contained in:
Robert Hillis 2021-07-02 11:43:37 -04:00 committed by GitHub
parent a3f1489785
commit 5cd4471c67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 174 additions and 5 deletions

View file

@ -18,8 +18,6 @@ from .const import DEFAULT_NAME, DOMAIN
_LOGGER = logging.getLogger(__name__)
DATA_SCHEMA = vol.Schema({vol.Required("host"): str, vol.Required("name"): str})
class GoalZeroFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Goal Zero Yeti."""