* 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
* Fix default states and add device_class.
Car data is initialised to zero, which means that graphs have an ugly
drop to zero in them when HA is restarted. We should report "None" when
the state is unknown.
We need to use availability to signal whether binary_sensors have
sensible data or not.
We can remove the custom icons and use the defaults provided by using
appropriate device_class.
* Make isort happy.
* Explicitly return None
* Remove feature from bugfix PR.
* Make statistics state characteristic selectable
* Move computation in helper function
* Add relevant config elements for clarity
* Rename variables for better readability
* Avoid reserved prefix ATTR_ for stats
* Fix NoneType base_unit error
* Add testcases for statistics characteristic
* Add testcases for state_class, unitless, and characteristics
* Add testcase coverage for no unit with binary
* Replace error catching by an exception
* Attend to review comments