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
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
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
f91d214ba4
Break out mock of pymodbus return from mock_modbus to new fixture ( #55063 )
...
* Remove unused mock_modbus.
* Break out mock pymodbus return values.
* Review comments.
2021-08-23 23:55:57 +02:00
jan iversen
da20552cd8
Remove base_test from modbus test harness ( #55018 )
...
* Remove base_test.
* Review comments.
2021-08-22 19:59:38 +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
71b0f6d095
set common test entity name. ( #54697 )
2021-08-17 20:43:27 +02:00
jan iversen
4ef9269790
Replace prepare_service_call with a simpler fixture in modbus ( #53975 )
...
* Convert prepare_service_call to a fixture.
2021-08-11 12:42:28 +02:00
jan iversen
e7f0768ae6
Convert base_config_test in modbus to existing Pytest.fixture ( #53836 )
...
* Convert base_config_test to pytest.fixture.
2021-08-09 12:11:54 +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
jan iversen
2ecfd74fa4
Add more data_types to modbus ( #52423 )
...
* Add more data_types.
* Use new struct when writing temperature.
2021-07-12 07:58:45 +02:00