Commit 929ab656 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes deprecation

No related merge requests found
Showing with 1 addition and 6 deletions
+1 -6
...@@ -22,7 +22,6 @@ from termcolor import colored ...@@ -22,7 +22,6 @@ from termcolor import colored
import threading import threading
from OhmPi.logging_setup import setup_loggers from OhmPi.logging_setup import setup_loggers
from OhmPi.config import MQTT_CONTROL_CONFIG, OHMPI_CONFIG, EXEC_LOGGING_CONFIG from OhmPi.config import MQTT_CONTROL_CONFIG, OHMPI_CONFIG, EXEC_LOGGING_CONFIG
import OhmPi.deprecated as deprecated
from logging import DEBUG from logging import DEBUG
from OhmPi.hardware_system import OhmPiHardware from OhmPi.hardware_system import OhmPiHardware
...@@ -153,11 +152,7 @@ class OhmPi(object): ...@@ -153,11 +152,7 @@ class OhmPi(object):
self.exec_logger.warning('No connection to control broker.' self.exec_logger.warning('No connection to control broker.'
' Use python/ipython to interact with OhmPi object...') ' Use python/ipython to interact with OhmPi object...')
def __getattr__(self, name): from OhmPi.deprecated import *
if hasattr(deprecated, name):
return getattr(deprecated, name)
else:
return self.name
@staticmethod @staticmethod
def append_and_save(filename: str, last_measurement: dict, cmd_id=None): def append_and_save(filename: str, last_measurement: dict, cmd_id=None):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment