diff --git a/examples/example.py b/examples/example.py index c9f5482..e16447e 100644 --- a/examples/example.py +++ b/examples/example.py @@ -1,7 +1,6 @@ """Test-module for pyCheckwatt.""" import argparse import json -import os from dotenv import load_dotenv diff --git a/pycheckwatt/__init__.py b/pycheckwatt/__init__.py index 2604cde..01564f4 100644 --- a/pycheckwatt/__init__.py +++ b/pycheckwatt/__init__.py @@ -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) diff --git a/setup.py b/setup.py index d9bd158..e59bda0 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ MIN_PY_VERSION = "3.10" PACKAGES = find_packages() -VERSION = "0.1.10" +VERSION = "0.2.0" setup( name="pycheckwatt",