diff --git a/src/oemof/network/network/nodes.py b/src/oemof/network/network/nodes.py index 3cb72fa..7438c8c 100644 --- a/src/oemof/network/network/nodes.py +++ b/src/oemof/network/network/nodes.py @@ -78,7 +78,7 @@ def __init__(self, *args, **kwargs): class Bus(Node): def __init__(self, *args, **kwargs): warnings.warn( - _deprecation_warning.format(type(self)), + _deprecation_warning.format("oemof.network.Bus"), FutureWarning, ) super().__init__(*args, **kwargs) @@ -87,7 +87,7 @@ def __init__(self, *args, **kwargs): class Component(Node): def __init__(self, *args, **kwargs): warnings.warn( - _deprecation_warning.format(type(self)), + _deprecation_warning.format("oemof.network.Component"), FutureWarning, ) super().__init__(*args, **kwargs)