mirror of
https://github.com/weewx/weewx.git
synced 2026-06-10 01:55:07 -04:00
Fixed a few minor Python errors.
This commit is contained in:
2
TODO.txt
2
TODO.txt
@@ -28,8 +28,6 @@ using accumulateLeaves, so you can use overrides?
|
||||
|
||||
Move schemas to the extension that uses them.
|
||||
|
||||
Clean up names. dbm? db? archive? database? Why DBBinder.get_binding,
|
||||
but weewx.database.open_database?
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -36,4 +36,4 @@ def main():
|
||||
device.configure(config_dict)
|
||||
|
||||
if __name__=="__main__":
|
||||
main()
|
||||
main()
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
# See the file LICENSE.txt for your full rights.
|
||||
|
||||
"""Abstract base class for hardware."""
|
||||
import weewx
|
||||
|
||||
class AbstractStation(object):
|
||||
"""Station drivers should inherit from this class."""
|
||||
@@ -54,7 +55,7 @@ class DeviceConfigurator(object):
|
||||
def configure(self, config_dict):
|
||||
parser = self.get_parser()
|
||||
self.add_options(parser)
|
||||
(options, args) = parser.parse_args()
|
||||
options, _ = parser.parse_args()
|
||||
if options.debug is not None:
|
||||
weewx.debug = options.debug
|
||||
self.do_config(options, config_dict)
|
||||
|
||||
@@ -31,7 +31,6 @@ import time
|
||||
|
||||
import weewx
|
||||
import weewx.abstractstation
|
||||
import weewx.units
|
||||
|
||||
DRIVER_VERSION = '0.8'
|
||||
DEFAULT_PORT = '/dev/ttyS0'
|
||||
|
||||
Reference in New Issue
Block a user