* Move "Battery:SmartBatteryControl:Enable" from a simple sensor to a switch
Add "Battery:TimeControl:Enable" as a switch
If you want to change charging behavior you need to turn off both switches, before you can enable the function you want. (Same as on Plenticore UI)
* removed:
@property
def assumed_state(self) -> bool
was copied from an switchbot integration, does not make sense or does deliver valuable information
Tried to set constant properties in the constructor
* correct typo, add new line at eof
* Initial state of switch was missing after (re)starting HA. Now working.
* Reformatted with black
* correct syntax errors from test run 09.10.2021
* reformat
* update 15.10.2021
* Set select value is working
* update 05.11.2021
* data correctly received
* working completly
* remove old switch definitions, now replaced by select widget
* correct complaints from workflow run on 11/11/2021
* Add explanatory comment for switch and select
* Correct comments
* Removed function async def async_read_data(self, module_id: str, data_id: str)
from class SettingDataUpdateCoordinator
* Add Mixin class for read/write
* try to make select.py less "stale"
* new dev environment 2
* new dev environment 2
* correct syntax
* minor coding standard correction
* Remove BOM
* Remove BOM on select.py
* Updated .coveragerc
* Add state class and implement in kostal_plenticore
* Add support for more entity variants
* Add the state_class to the total values too
* Reformat kostal const.py
* Add `last_reset` to kostal_plenticore entities when `state_class` is set
Also reformat sensor.py
* Fix import
* Remove the constants from the homeassistant constants file
* Use sensor constants for the state_class
* Reformat
* Reformat
* Move last_reset from sensor.py into const.py
* Remove last_reset on PERCENTAGE entities
* Address lint issues
* Update homeassistant/components/kostal_plenticore/sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Import datetime
* Apply suggestions from code review
* Fix isort
* Fix more isort
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* New integration for Kostal Plenticore solar inverters.
* Fix errors from github pipeline.
* Fixed test for py37.
* Add more test for test coverage check.
* Try to fix test coverage check.
* Fix import sort order.
* Try fix test code coverage .
* Mock api client for tests.
* Fix typo.
* Fix order of rebased code from dev.
* Add new data point for home power.
* Modifications to review.
Remove service for write access (for first pull request). Refactor
update coordinator to not use the entity API.
* Fixed mock imports.
* Ignore new python module on coverage.
* Changes after review.
* Fixed unit test because of config title.
* Fixes from review.
* Changes from review (unique id and mocking of tests)
* Use async update method. Change unique id. Remove _dict
* Remove _data field.
* Removed login flag from PlenticoreUpdateCoordinator.
* Removed Dynamic SoC sensor because it should be a binary sensor.
* Remove more sensors because they are binary sensors.