Trying to get 501s ignored on generated registers
This commit is contained in:
parent
171912bb7d
commit
fec99b0fe8
2 changed files with 4 additions and 3 deletions
|
@ -31,11 +31,12 @@ Issues = "https://git.pwarren.id.au/pwarren/PyFroniusReg/issues"
|
|||
|
||||
|
||||
[tool.ruff]
|
||||
# Set the maximum line length to 79.
|
||||
line-length = 99
|
||||
|
||||
[tool.ruff.lint]
|
||||
# Add the `line-too-long` rule to the enforced rule set. By default, Ruff omits rules that
|
||||
# overlap with the use of a formatter, like Black, but we can override this behavior by
|
||||
# explicitly adding the rule.
|
||||
extend-select = ["E501", "T20", "E", "PL"]
|
||||
extend-select = ["T20", "E", "PL"]
|
||||
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ fronius1.connect()
|
|||
|
||||
class TestRead(unittest.TestCase):
|
||||
def test_read_scaled(self):
|
||||
soc = gen24_registers.scaledStateOfCharge.get(fronius1)
|
||||
soc = gen24_registers.scaledChaState.get(fronius1)
|
||||
assert isinstance(soc, float)
|
||||
|
||||
def test_read_direct(self):
|
||||
|
|
Loading…
Reference in a new issue