epenet
8e0dfbcd13
Improve type hints in modbus tests ( #123795 )
2024-08-13 13:15:35 +02:00
epenet
4962895f19
Fix consider-using-enumerate warnings in tests ( #119506 )
2024-06-12 16:27:56 +02:00
jan iversen
3202743b6c
Cleanup modbus test mocks ( #115412 )
2024-04-17 19:10:09 +02:00
Sid
727581eea3
Add first batch of Ruff PT rules ( #113665 )
...
* Add first batch of Ruff PT rules
* fix weather test
* Fix pilight test
* Update test_intent.py
* Update pilight test_init.py
* Update test_init.py
2024-03-18 13:26:14 +01:00
Sid
d5fd005db8
Add ruff rule PIE808 ( #113621 )
2024-03-17 09:56:26 +01:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
jan iversen
97c6fd0f8d
Allow modbus negative min/max value. ( #109995 )
2024-02-08 15:34:43 +01:00
jan iversen
55f10656a7
Allow modbus "scale" to be negative. ( #109965 )
2024-02-08 12:40:32 +01:00
jan iversen
543870d5f1
Correct modbus commit validation, too strict on integers ( #109338 )
2024-02-02 09:46:53 +01:00
jan iversen
3cc5ffaa4b
Replace modbus number_validator by HA standard ( #108939 )
2024-01-27 16:39:33 +01:00
jan iversen
d8f16c14ab
Get modbus coverage back to 100% ( #108734 )
...
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-01-23 21:50:25 +01:00
jan iversen
0638088aee
Deprecate and remove lazy_error from modbus ( #105037 )
2023-12-05 13:08:33 +01:00
jan iversen
1629bdcd7f
Remove "swap: none" from modbus ( #104713 )
2023-12-04 14:48:40 +01:00
jan iversen
be889c89c1
Update modbus validate table to be 3 state, to simplify the code ( #104514 )
2023-11-26 17:49:51 +01:00
Jan-Philipp Benecke
9326ea09a5
Update m* tests to use entity & device registry fixtures ( #103980 )
2023-11-15 10:33:11 +01:00
jan iversen
40dc6d8191
Reduce modbus validator by using table ( #103488 )
2023-11-08 09:55:00 +01:00
jan iversen
5eba6dbc9f
modbus Allow swap: byte for datatype: string. ( #103441 )
2023-11-06 07:52:15 +01:00
jan iversen
568974fcc4
Modbus 100% test coverage (again) ( #100482 )
2023-09-16 14:00:22 +02:00
jan iversen
fd83f7d87f
Add test for modbus CONF_DEVICE_ADDR ( #100435 )
2023-09-15 16:12:44 +02:00
jan iversen
9eb0b844bc
Test VIRTUAL_COUNT parameter ( #100434 )
2023-09-15 15:02:24 +02:00
jan iversen
c178388956
Remove modbus pragma no cover and solve nan ( #99221 )
...
* Remove pragma no cover.
* Ruff !
* Review comments.
* update test.
* Review.
* review.
* Add slave test.
2023-09-12 16:05:59 +02:00
jan iversen
9acca1bf58
Make modbus retry fast on read errors ( #99576 )
...
* Fast retry on read errors.
* Review comments.
2023-09-12 10:01:15 -04:00
jan iversen
77180a73b7
Modbus scale parameter cuts decimals ( #99758 )
2023-09-07 20:56:00 +02:00
jan iversen
f85a3861f2
Make validator for modbus table controlled ( #99092 )
2023-09-03 21:04:58 +02:00
jan iversen
c94d4f501b
Read modbus data before scan_interval ( #99243 )
...
Read before scan_interval.
2023-09-03 17:13:49 +02:00
J. Nick Koston
80d2309896
Switch async_track_time_interval to use async_call_later internally ( #99220 )
2023-08-28 13:56:22 -05:00
Ville Skyttä
3094991236
Upgrade ruff to 0.0.285 ( #98647 )
2023-08-19 08:17:17 -04:00
jan iversen
c268adb07e
modbus: Repair swap for slaves ( #97960 )
2023-08-18 13:23:04 +02:00
jan iversen
59d37f65d5
Correct modbus config validator: slave/swap ( #97798 )
2023-08-18 10:55:39 +02:00
jan iversen
fc463e5831
modbus: remove unused constants and get 100% coverage. ( #97779 )
2023-08-08 16:40:16 +02:00
Johannes Wagner
c4a5373976
Handle explicit Modbus NaN values ( #90800 )
...
Co-authored-by: jan iversen <jancasacondor@gmail.com>
2023-08-06 13:47:54 +02:00
Franck Nijhof
d3ed8de232
Update Ruff to v0.0.247 ( #88210 )
...
* Update Ruff to v0.0.247
* Fix new found violations
2023-02-15 16:46:03 -05:00
epenet
50cbabb2d8
Add type hints to integration tests (part 15) ( #88006 )
2023-02-15 10:00:49 +01:00
jan iversen
b9b5a279f2
Correct sensor restore entity in modbus ( #87563 )
...
* Correct sensor restore entity.
* Review comments.
2023-02-09 21:35:44 +01:00
epenet
f75ac17554
Add type hints to integration tests (j-m) ( #87704 )
2023-02-08 19:06:59 +01:00
epenet
810367b757
Fix `can not` typo ( #87254 )
2023-02-03 11:37:16 +01:00
GrahamJB1
8bff95014c
Add modbus min/max values ( #86131 )
...
* modbus min/max values
Co-authored-by: jan iversen <jancasacondor@gmail.com>
2023-02-02 22:29:03 +01:00
GrahamJB1
200d3ae845
modbus slave unique ids ( #86126 )
...
modbus slave unique ids
2023-01-19 11:08:11 +01:00
jan iversen
15176300e2
Add full test of wrap option ( #82308 )
...
fixes undefined
2022-11-22 09:57:04 +01:00
jan iversen
d2e5c85429
Remove pragma from discover check. ( #68002 )
2022-03-11 19:58:18 +02:00
jan iversen
a4915eb704
Handle exception in modbus slave sensor ( #67472 )
2022-03-02 09:49:57 -08:00
jan iversen
e891df0ff3
Allow multi read of Modbus sensor ( #67378 )
2022-02-28 11:07:55 -08:00
jan iversen
8233278ccc
Correct tests to use data_type in Modbus ( #67246 )
2022-02-25 11:37:52 -08:00
jan iversen
8741ff0684
Diferentiate between attr_name and entity_id in Modbus tests ( #66999 )
2022-02-21 14:56:31 -08:00
Dave T
e64352a7e0
Use new enums in modbus tests ( #62518 )
2021-12-22 10:03:11 +01: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
34984d78a1
Add float32 test to modbus ( #57805 )
2021-10-15 16:06:36 -07:00
jan iversen
4417ffb407
COnvert DATA_TYPE to enum. ( #57699 )
2021-10-15 07:09:59 +02:00
jan iversen
199cf649be
Add test of lazy_error in modbus ( #57170 )
2021-10-11 12:43:05 +02: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