docs: Update Extension example
This commit is contained in:
parent
4e317681b0
commit
06534a8dc2
@ -210,8 +210,7 @@ and ``password``.
|
|||||||
import gst
|
import gst
|
||||||
import gobject
|
import gobject
|
||||||
|
|
||||||
from mopidy import exceptions, ext
|
from mopidy import config, exceptions, ext
|
||||||
from mopidy.utils import config
|
|
||||||
|
|
||||||
|
|
||||||
__version__ = '0.1'
|
__version__ = '0.1'
|
||||||
@ -234,7 +233,7 @@ and ``password``.
|
|||||||
return default_config
|
return default_config
|
||||||
|
|
||||||
def get_config_schema(self):
|
def get_config_schema(self):
|
||||||
schema = config.ExtensionConfigSchema()
|
schema = super(Extension, self).get_config_schema()
|
||||||
schema['username'] = config.String(required=True)
|
schema['username'] = config.String(required=True)
|
||||||
schema['password'] = config.String(required=True, secret=True)
|
schema['password'] = config.String(required=True, secret=True)
|
||||||
return schema
|
return schema
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user