hass-core/homeassistant/components/modbus
Lincoln Kirchoff ac39607ae9
Fix modbus climate precision configuration variable (#52651)
* Updated precision to follow the tenths, halves, whole notation used by
other home assistant climate modules. Added the precision @property so
that home assistant can handle this rounding in the frontend, rather
than in the _async_read_register() method.

* Fixed a pylinter error for periods in user-facing log messages, and
updated `precision` defaults in components/modbus/__init__.py to be
consistent with an error case, using `PRECISION_WHOLE`.

* revert changes to `precision:` configuration variable
instead, the climate `precision()` function will infer whether or not
to display in whole or tenths. halves will be unsupported, which should
be fine.

* re-added missing line that was removed

* revert change to use self._input_type instead of CALL_TYPE_REGISTER_HOLDING
2021-07-13 10:36:54 +02:00
..
__init__.py Add array write to turn_on/off in modbus switch/fan/light (#52582) 2021-07-12 11:22:53 -07:00
base_platform.py Add array write to turn_on/off in modbus switch/fan/light (#52582) 2021-07-12 11:22:53 -07:00
binary_sensor.py Remove "old" config from modbus binary_sensor (#51117) 2021-05-28 12:06:46 +02:00
climate.py Fix modbus climate precision configuration variable (#52651) 2021-07-13 10:36:54 +02:00
const.py Add array write to turn_on/off in modbus switch/fan/light (#52582) 2021-07-12 11:22:53 -07:00
cover.py Change Cover to use address/input_type (#51154) 2021-05-28 13:23:44 +02:00
fan.py Remove old config from cover, including tests (#51118) 2021-05-28 11:29:37 +02:00
light.py Remove old config from cover, including tests (#51118) 2021-05-28 11:29:37 +02:00
manifest.json Bump pymodbus to v2.5.2 (#50582) 2021-05-13 20:31:48 -07:00
modbus.py Add check for _client existence in modbus (#52719) 2021-07-08 11:58:51 +02:00
sensor.py After merge, review. (#51139) 2021-05-27 08:28:31 +02:00
services.yaml Wrap up selectors (#50794) 2021-05-25 14:45:17 +02:00
switch.py Remove old config from cover, including tests (#51118) 2021-05-28 11:29:37 +02:00
validators.py Correct Wrong "raise" in modbus validators. (#52924) 2021-07-12 11:06:31 -07:00