forked from nathanmarlor/foxess_modbus
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vendor pymodbus, rather than relying on the version which HA installs
This should protect us from HA breaking things in the future! Fixes: nathanmarlor#748
- Loading branch information
Showing
88 changed files
with
13,801 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
tests/__snapshots__ | ||
custom_components/foxess_modbus/vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
custom_components/foxess_modbus/vendor/pymodbus/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import sys | ||
from pathlib import Path | ||
|
||
# Update python.analysis.extraPaths in .vscode/settings.json if you change this. | ||
# If changed, make sure subclasses in modbus_client are still valid! | ||
sys.path.insert(0, str((Path(__file__).parent / "pymodbus-3.7.4").absolute())) | ||
|
||
from pymodbus.client import ModbusSerialClient | ||
from pymodbus.client import ModbusTcpClient | ||
from pymodbus.client import ModbusUdpClient | ||
from pymodbus.exceptions import ConnectionException | ||
from pymodbus.exceptions import ModbusIOException | ||
from pymodbus.framer import FramerType | ||
from pymodbus.pdu import ModbusPDU | ||
from pymodbus.pdu.register_read_message import ReadHoldingRegistersResponse | ||
from pymodbus.pdu.register_read_message import ReadInputRegistersResponse | ||
from pymodbus.pdu.register_write_message import WriteMultipleRegistersResponse | ||
from pymodbus.pdu.register_write_message import WriteSingleRegisterResponse | ||
|
||
sys.path.pop(0) | ||
|
||
__all__ = [ | ||
"ModbusSerialClient", | ||
"ModbusTcpClient", | ||
"ModbusUdpClient", | ||
"ConnectionException", | ||
"ModbusIOException", | ||
"FramerType", | ||
"ModbusPDU", | ||
"ReadHoldingRegistersResponse", | ||
"ReadInputRegistersResponse", | ||
"WriteMultipleRegistersResponse", | ||
"WriteSingleRegisterResponse", | ||
] |
Binary file added
BIN
+106 KB
custom_components/foxess_modbus/vendor/pymodbus/pymodbus-3.7.4/bin/pymodbus.simulator.exe
Binary file not shown.
185 changes: 185 additions & 0 deletions
185
...xess_modbus/vendor/pymodbus/pymodbus-3.7.4/pymodbus-3.7.4.dist-info/AUTHORS.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
Authors | ||
======= | ||
All these versions would not be possible without volunteers! | ||
|
||
This is a complete list for each major version. | ||
|
||
A big "thank you" to everybody who helped out. | ||
|
||
Pymodbus version 3 family | ||
------------------------- | ||
Thanks to | ||
|
||
- ahcm-dev | ||
- AKJ7 | ||
- Alex | ||
- Alex Ruddick | ||
- Alexander Lanin | ||
- Alexandre CUER | ||
- Alois Hockenschlohe | ||
- Andy Walker | ||
- Arjan | ||
- André Srinivasan | ||
- andrew-harness | ||
- banana-sun | ||
- Blaise Thompson | ||
- CapraTheBest | ||
- cgernert | ||
- corollaries | ||
- Chandler Riehm | ||
- Chris Hung | ||
- Christian Krause | ||
- Daniel Rauber | ||
- dhoomakethu | ||
- doelki | ||
- DominicDataP | ||
- Dominique Martinet | ||
- Dries | ||
- duc996 | ||
- efdx | ||
- Esco441-91 | ||
- Farzad Panahi | ||
- Fredo70 | ||
- Gao Fang | ||
- Ghostkeeper | ||
- Hangyu Fan | ||
- Hayden Roche | ||
- Iktek | ||
- Ilkka Ollakka | ||
- Jakob Ruhe | ||
- Jakob Schlyter | ||
- James Braza | ||
- James Cameron | ||
- James Hilliard | ||
- jan iversen | ||
- Jerome Velociter | ||
- Joe Burmeister | ||
- John Miko | ||
- Jonathan Reichelt Gjertsen | ||
- julian | ||
- Justin Standring | ||
- Kenny Johansson | ||
- Kürşat Aktaş | ||
- laund | ||
- Logan Gunthorpe | ||
- Marko Luther | ||
- Martyy | ||
- Máté Szabó | ||
- Matthias Straka | ||
- Matthias Urlichs | ||
- Michel F | ||
- Mickaël Schoentgen | ||
- Pavel Kostromitinov | ||
- peufeu2 | ||
- Philip Couling | ||
- Qi Li | ||
- Sebastian Machuca | ||
- Sefa Keleş | ||
- Steffen Beyer | ||
- sumguytho | ||
- Thijs W | ||
- Totally a booplicate | ||
- WouterTuinstra | ||
- wriswith | ||
- Yash Jani | ||
- Yohrog | ||
- yyokusa | ||
|
||
|
||
Pymodbus version 2 family | ||
------------------------- | ||
Thanks to | ||
|
||
- alecjohanson | ||
- Alexey Andreyev | ||
- Andrea Canidio | ||
- Carlos Gomez | ||
- Cougar | ||
- Christian Sandberg | ||
- dhoomakethu | ||
- dices | ||
- Dmitri Zimine | ||
- Emil Vanherp | ||
- er888kh | ||
- Eric Duminil | ||
- Erlend Egeberg Aasland | ||
- hackerboygn | ||
- Jian-Hong Pan | ||
- Jose J Rodriguez | ||
- Justin Searle | ||
- Karl Palsson | ||
- Kim Hansen | ||
- Kristoffer Sjöberg | ||
- Kyle Altendorf | ||
- Lars Kruse | ||
- Malte Kliemann | ||
- Memet Bilgin | ||
- Michael Corcoran | ||
- Mike | ||
- sanjay | ||
- Sekenre | ||
- Siarhei Farbotka | ||
- Steffen Vogel | ||
- tcplomp | ||
- Thor Michael Støre | ||
- Tim Gates | ||
- Ville Skyttä | ||
- Wild Stray | ||
- Yegor Yefremov | ||
|
||
|
||
Pymodbus version 1 family | ||
------------------------- | ||
Thanks to | ||
|
||
- Antoine Pitrou | ||
- Bart de Waal | ||
- bashwork | ||
- bje- | ||
- Claudio Catterina | ||
- Chintalagiri Shashank | ||
- dhoomakethu | ||
- dragoshenron | ||
- Elvis Stansvik | ||
- Eren Inan Canpolat | ||
- Everley | ||
- Fabio Bonelli | ||
- fleimgruber | ||
- francozappa | ||
- Galen Collins | ||
- Gordon Broom | ||
- Hamilton Kibbe | ||
- Hynek Petrak | ||
- idahogray | ||
- Ingo van Lil | ||
- Jack | ||
- jbiswas | ||
- jon mills | ||
- Josh Kelley | ||
- Karl Palsson | ||
- Matheus Frata | ||
- Patrick Fuller | ||
- Perry Kundert | ||
- Philippe Gauthier | ||
- Rahul Raghunath | ||
- sanjay | ||
- schubduese42 | ||
- semyont | ||
- Semyon Teplitsky | ||
- Stuart Longland | ||
- Yegor Yefremov | ||
|
||
|
||
Pymodbus version 0 family | ||
------------------------- | ||
Thanks to | ||
|
||
- Albert Brandl | ||
- Galen Collins | ||
|
||
Import to github was based on code from: | ||
|
||
- S.W.A.C. GmbH, Germany. | ||
- S.W.A.C. Bohemia s.r.o., Czech Republic. | ||
- Hynek Petrak | ||
- Galen Collins |
1 change: 1 addition & 0 deletions
1
...omponents/foxess_modbus/vendor/pymodbus/pymodbus-3.7.4/pymodbus-3.7.4.dist-info/INSTALLER
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pip |
23 changes: 23 additions & 0 deletions
23
..._components/foxess_modbus/vendor/pymodbus/pymodbus-3.7.4/pymodbus-3.7.4.dist-info/LICENSE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Copyright 2008-2023 Pymodbus | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions | ||
are met: | ||
1. Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
2. Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
3. The name of the author may not be used to endorse or promote products | ||
derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | ||
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Oops, something went wrong.