Marc Mueller
887d04be60
Use assignment expressions 32 ( #58716 )
2021-10-30 16:30:13 +02:00
jan iversen
f2a5d92e61
Fix connect_fail test and modbus.py 100% coverage ( #57894 )
...
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-10-20 15:22:24 -07:00
jan iversen
cca7da77ad
Report modbus buffer too small or too big to unpack ( #57838 )
2021-10-20 15:22:01 -07:00
jan iversen
f92fe38bbd
Change warning to info when modbus is ready ( #57953 )
...
* Change warning to info.
* Make level info implicit.
2021-10-18 19:38:33 -07:00
jan iversen
c9f55c01af
Bump pymodbus to 2.5.3. ( #57887 )
2021-10-17 10:11:28 +02:00
jan iversen
42803e6ac0
Clean startup of modbus by moving service schemas ( #57763 )
2021-10-15 09:40:27 -07:00
jan iversen
4417ffb407
COnvert DATA_TYPE to enum. ( #57699 )
2021-10-15 07:09:59 +02:00
Robert Hillis
488a636aec
Clean up unused loggers ( #57662 )
2021-10-14 10:03:38 -07:00
jan iversen
6a39119ccc
Streamline modbus before 100% coverage. ( #57478 )
2021-10-11 13:26:36 -05:00
Marc Mueller
d51487f82a
Import Callable from collections.abc (3) ( #56777 )
2021-09-29 16:19:06 +02:00
jan iversen
6da548b56a
Strictly type modbus cover.py ( #56381 )
2021-09-27 12:26:25 +02:00
jan iversen
50f97b26eb
Strictly type modbus climate.py ( #56380 )
2021-09-27 12:25:05 +02:00
jan iversen
1cc850877f
strictly type: fan.py, light.py, switch.py. ( #56379 )
2021-09-23 18:35:50 +01:00
jan iversen
c7c789f618
Strictly type modbus __init__.py, validator.py ( #56378 )
...
* strictly type: __init__.py, validator.py
2021-09-21 13:43:41 +02:00
jan iversen
f3ad4ca0cc
Strictly type modbus.py. ( #56375 )
2021-09-20 18:47:05 +02:00
jan iversen
a84e86ff13
Strictly type modbus base_platform.py ( #56343 )
2021-09-20 14:59:30 +02:00
jan iversen
ddd31951bc
Strictly type sensor.py. ( #56377 )
2021-09-20 07:35:11 +02:00
jan iversen
6b6e26c96d
Strictly type binary_sensor.py. ( #56376 )
2021-09-18 20:54:11 +01:00
jan iversen
6947912fa9
Modbus entity update does not occur until after scan_interval ( #56221 )
...
* Secure update is called when integration is started.
* Review comments.
* Update homeassistant/components/modbus/base_platform.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Update homeassistant/components/modbus/base_platform.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-09-18 08:57:27 +02:00
jan iversen
aaa62dadec
Add service to stop/restart modbus ( #55599 )
...
* Add service to stop/restart modbus.
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-09-14 09:42:50 +02:00
jan iversen
8d4aac618d
Allow same IP if ports are different on modbus ( #55766 )
2021-09-06 13:40:15 -07:00
jan iversen
cac3e1acfa
Allow same address different register types in modbus ( #55767 )
2021-09-06 13:35:40 -07:00
jan iversen
69aba2a6a1
Correct duplicate address. ( #55578 )
2021-09-02 13:53:38 +02:00
jan iversen
f91cc21bbd
Solve modbus shutdown racing condition ( #55373 )
2021-08-28 23:04:33 +02:00
jan iversen
7ac72ebf38
Add modbus name to log_error ( #55336 )
2021-08-27 09:26:57 -07:00
Matthias Alphart
cd0ae66d58
Add CONF_STATE_CLASS to `sensor/__init__.py` ( #54106 )
...
* add CONF_STATE_CLASS to const.py
* move to `sensor/__init__.py`
* move to sensor/const.py
* Revert "move to sensor/const.py"
This reverts commit 604d0d066b
.
* move it to `sensor/const.py` but import it from `sensor/__init__.py`
* add Modbus
2021-08-27 05:54:50 +02:00
jan iversen
2d5176eee9
Change entity_timers to be a local variable. ( #55258 )
...
Ensure outstanding pymodbus calls are handled before closing.
2021-08-26 15:23:00 +02:00
jan iversen
d60f5e1721
Add missing convert to fan/light/switch modbus platform ( #55203 )
2021-08-25 21:02:06 +02:00
jan iversen
d4064e7044
Cancel entity timers. ( #55141 )
2021-08-25 14:49:37 +02:00
jan iversen
7df8d0c973
Check for duplicate host/port and integration name in modbus ( #54664 )
...
* Check for duplicate host/port and integration name.
* Change to use set().
* Please CI.
* Add basic tests.
2021-08-25 12:29:00 +02:00
Matthias Alphart
51361fbd2b
Add configurable `state_class` to Modbus sensors ( #54103 )
...
* add configurable state_class
* Add test of new parameter.
Co-authored-by: jan Iversen <jancasacondor@gmail.com>
2021-08-25 11:50:54 +02:00
jan iversen
33f660118f
Add lazy_error_count to modbus ( #54412 )
...
* Add lazy_error_count.
* Use -=
* Review comments.
2021-08-21 15:49:50 +02:00
jan iversen
1f6d18c517
Set quality level of modbus to gold ( #54926 )
...
* Prepare for gold.
* Upgrade to gold.
2021-08-20 17:59:31 +02:00
jan iversen
0688aaa2b6
Check for duplicate entity name/address in modbus entities ( #54669 )
...
* Check for duplicate entity name/address.
2021-08-19 09:37:31 +02:00
jan iversen
bafbbc6563
Adjust modbus constants names ( #54792 )
...
* Follow up.
2021-08-18 12:56:54 +02:00
jan iversen
bec42b74fe
Solve switch/verify register type convert problem in modbus ( #54645 )
2021-08-15 19:57:37 -07:00
Erik Montnemery
2720ba2753
Move temperature conversions to sensor base class (4/8) ( #54472 )
...
* Move temperature conversions to entity base class (4/8)
* Fix litterrobot sensor
* Fix tests
2021-08-11 21:17:47 +02:00
jan iversen
54538bb72b
Bump pymodbus version to 2.5.3rc1 ( #54318 )
2021-08-10 10:16:38 +02:00
jan iversen
02459e6813
Convert last properties in modbus to _attr_variable ( #53919 )
2021-08-08 23:23:21 +02:00
jan iversen
e8aa280d7f
Add modbus get_hub ( #54277 )
...
* Add dict with hubs.
* Update flexit to use get_hub.
* Remove executor_task for close.
2021-08-08 22:48:33 +02:00
jan iversen
8a4674c086
Solve missing automatic update of struct configuration in modbus ( #54193 )
2021-08-07 21:11:56 -07:00
jan iversen
2232915ea8
Add parameter to delay sending of requests in modbus ( #54203 )
2021-08-07 21:10:08 -07:00
jan iversen
b2fffdd13e
Add temporary fix to modbus to solve upstream problem ( #53857 )
2021-08-04 17:03:31 -07:00
jan iversen
0f8a286cc7
Allow combinations write_coil/read_coils and write_coils/read_coil for modbus switch ( #53856 )
2021-08-02 14:55:52 +02:00
jan iversen
3d52bfc8f6
Simplify DATA_TYPE -> struct conversion. ( #53805 )
2021-07-31 23:17:23 +02:00
Marc Mueller
0815eede4b
Replace lists with tuples (2) ( #53685 )
2021-07-30 01:20:03 +02:00
jan iversen
cfb0def718
Change integration modbus to use _attr variables ( #53511 )
2021-07-26 21:20:34 +02:00
jan iversen
7306503756
Calculate count automatically in modbus platforms ( #53116 )
2021-07-20 22:49:54 -07:00
jan iversen
2e2b340b1e
Set modbus entity to non-available unless scan_interval=0 ( #53155 )
2021-07-20 22:48:02 -07:00
Franck Nijhof
059a9bc8ed
Fix modbus setting string as temperature in climate platform ( #53249 )
2021-07-20 22:03:10 +02:00