Pin google-cloud-pubsub to an older version, since newer versions have a
pin that is incompatible with the existing grpcio pin already in package_constraints.txt
* pyflexit first argument should be a ModbusSerialClient
This component broke with 2021.6
I have tested this patch on my setup and it restores functionality
* Implemented async reading of modbus values
Stopped using pyflexit as this is outdated and not needed
Instead using async_pymodbus_call from ModbusHub class
* Bugfix: Reading fan mode from wrong register
* Implemented async writing
Set target temperature and fan mode using modbus call
Added some error handling
* No longer require pyflexit
* Review comments.
Co-authored-by: jan Iversen <jancasacondor@gmail.com>
* 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>
* Convert all HomeKit service info to string prior to checking for max length
* Added check for None software version
* Added test case for numeric version number
* Update tests/components/homekit/test_accessories.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Fix style & none version test
* Fix test
* revert other change since it should be covered by the format_sw_version fix
Co-authored-by: J. Nick Koston <nick@koston.org>
* Convert all HomeKit service info to string prior to checking for max length
* Added check for None software version
* Added test case for numeric version number
* Update tests/components/homekit/test_accessories.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Fix style & none version test
* Fix test
* revert other change since it should be covered by the format_sw_version fix
Co-authored-by: J. Nick Koston <nick@koston.org>