Skip to content

Commit

Permalink
removed os from example.py
Browse files Browse the repository at this point in the history
  • Loading branch information
flopp999 committed Jan 27, 2024
1 parent 09a4660 commit ea43899
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion examples/example.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Test-module for pyCheckwatt."""
import argparse
import json
import os

from dotenv import load_dotenv

Expand Down
2 changes: 1 addition & 1 deletion pycheckwatt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _extract_content_and_logbook(self, input_string):

def _extract_fcr_d_state(self):
pattern = re.compile(
r"\[ FCR-D (ACTIVATED|DEACTIVATE|FAIL ACTIVATION) \](?:.*?(\d+,\d+/\d+,\d+/\d+,\d+ %))?(?:\s*(.*?))?(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})"
r"\[ FCR-D (ACTIVATED|DEACTIVATE|FAIL ACTIVATION) \](?:.*?(\d+,\d+/\d+,\d+/\d+,\d+ %))?(?:\s*(.*?))?(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})" # noqa: E501
)
for entry in self.logbook_entries:
match = pattern.search(entry)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

MIN_PY_VERSION = "3.10"
PACKAGES = find_packages()
VERSION = "0.1.10"
VERSION = "0.2.0"

setup(
name="pycheckwatt",
Expand Down

0 comments on commit ea43899

Please sign in to comment.