|
|
@@ -166,7 +166,7 @@ class ServiceConfig:
|
|
|
def from_dict(cls, key: str, d: dict) -> 'ServiceConfig':
|
|
|
return cls(
|
|
|
key=key,
|
|
|
- name=d['name'],
|
|
|
+ name=d.get('name', key),
|
|
|
room_id=str(d.get('room_id', '')),
|
|
|
account_id=str(d.get('account_id', '')),
|
|
|
hotel_id=str(d.get('hotel_id', '')),
|