Move init of _config to apiserver parent

This commit is contained in:
Matthias 2020-12-23 20:50:32 +01:00
parent 0b98f19f2c
commit 516e56bfaa
4 changed files with 1 additions and 3 deletions

View File

@ -98,7 +98,6 @@ class ApiServer(RPC):
"""
super().__init__(freqtrade)
self._config = freqtrade.config
self.app = Flask(__name__)
self._cors = CORS(self.app,
resources={r"/api/*": {

View File

@ -79,6 +79,7 @@ class RPC:
:return: None
"""
self._freqtrade = freqtrade
self._config: Dict[str, Any] = freqtrade.config
@property
def name(self) -> str:

View File

@ -75,7 +75,6 @@ class Telegram(RPC):
super().__init__(freqtrade)
self._updater: Updater
self._config = freqtrade.config
self._init_keyboard()
self._init()
if self._config.get('fiat_display_currency', None):

View File

@ -25,7 +25,6 @@ class Webhook(RPC):
"""
super().__init__(freqtrade)
self._config = freqtrade.config
self._url = self._config['webhook']['url']
def cleanup(self) -> None: