mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 03:54:21 +01:00
fix: NUT-15 setting remove mpp boolean (#673)
* fix: NUT-15 setting remove mpp boolean * remove mpp flag
This commit is contained in:
@@ -73,7 +73,6 @@ class GetInfoResponse(BaseModel):
|
||||
class Nut15MppSupport(BaseModel):
|
||||
method: str
|
||||
unit: str
|
||||
mpp: bool
|
||||
|
||||
|
||||
class GetInfoResponse_deprecated(BaseModel):
|
||||
|
||||
@@ -67,13 +67,7 @@ class LedgerFeatures(SupportsBackends):
|
||||
for method, unit_dict in self.backends.items():
|
||||
for unit in unit_dict.keys():
|
||||
if unit_dict[unit].supports_mpp:
|
||||
mpp_features.append(
|
||||
{
|
||||
"method": method.name,
|
||||
"unit": unit.name,
|
||||
"mpp": True,
|
||||
}
|
||||
)
|
||||
mpp_features.append({"method": method.name, "unit": unit.name})
|
||||
|
||||
if mpp_features:
|
||||
mint_features[MPP_NUT] = dict(methods=mpp_features)
|
||||
|
||||
Reference in New Issue
Block a user