Removed the failing call to get location properties, the API started
returning that natively a while back so the call wasn't necessary
anymore anyway.
Additionally tweaks the service description for setting the EVSE
current. Still might need to tweak that further to match the latest
expectations but this should be an improvement toward that. Longer term
I want to get back to it only showing EVSEs in the list instead of all
outlets but it's better than nothing!
Fix for #381 - Extra keys not allowed in services.yaml. Not sure why
this was allowed for so long and is now breaking, but I removed the
nested entity key and loosened the model restriction since there are now
multiple models for EVSEs.
Will no longer filter to just EVSEs unfortunately, instead filters to
all "outlets" until EVSEs get their own device class. Calling it on an
outlet will give a fairly clear error.
This pull request introduces a minor refactor to the `async_setup` and
`async_setup_entry` functions in the `custom_components/emporia_vue`
integration and updates the version in the `manifest.json` file. The
most important changes are detailed below:
### Refactor to configuration handling:
* Removed the setting of the `INVERT_SOLAR` global variable from the
`async_setup` function. It is now initialized in the `async_setup_entry`
function, where it is conditionally assigned based on `entry.data`.
[[1]](diffhunk://#diff-b9cd036c286ca37bb13a1f16e8f20f8f567fad585a9d060b850c8fe4aadd8630L72-L75)
[[2]](diffhunk://#diff-b9cd036c286ca37bb13a1f16e8f20f8f567fad585a9d060b850c8fe4aadd8630R95-R104)
### Version update:
* Updated the version in `manifest.json` from `0.11.0` to `0.11.1` to
reflect the changes in the integration.
- Updates to config flows to support re-auth when password changes and
reconfiguration to change the configuration normally set during
initialization.
- Add config option to invert solar data, defaults to true. This should
allow the user to choose if they want it inverted, since the energy
dashboard requires positive data but emporia usually provides negative
for generation.
- A bunch of typing and similar style updates
- Update some translation strings
- Add support for using the API simulator without dev code
- Bumped version to 0.10.0.
- Updated sensor names to more closely follow Home Assistant's
recommended naming conventions. Only changes them if they're still set
to the default, you can still rename them.
- Addressed Home Assistant warnings about deprecated functionality and
also numerous linter recommendations.\
- Bumped PyEmVue to 0.18.6, which includes improvements to the
authentication flow and supports bidirectional circuits.