mirror of
https://github.com/arendst/Tasmota.git
synced 2026-07-27 20:05:46 +00:00
Update Shift595.be to avoid failing init (#24399)
PR https://github.com/arendst/Tasmota/pull/15468 to "simplify drivers" caused a breaking change to this specific one, as it will instantiate the class without arguments. This fails https://github.com/arendst/Tasmota/discussions/24380 Removing the empty argument list allows `import Shift595` (suggested in the code block) to work, and do the class instantiation there. Ok with this minimal fix, @s-hadinger or should more refactoring be done?
This commit is contained in:
@@ -76,4 +76,4 @@ class Shift595
|
||||
|
||||
end
|
||||
|
||||
return Shift595() # allow using 'import' instead of 'load()'
|
||||
return Shift595 # allow using 'import' instead of 'load()'
|
||||
|
||||
Reference in New Issue
Block a user