image: use correct deviceinfo value for device sector size
This commit is contained in:
parent
33e1214aef
commit
edcad72f7a
5 changed files with 45 additions and 39 deletions
|
@ -58,6 +58,7 @@ class DictScheme(Munch):
|
|||
def transform(
|
||||
cls,
|
||||
values: Mapping[str, Any],
|
||||
*,
|
||||
validate: bool = True,
|
||||
allow_extra: bool = False,
|
||||
type_hints: Optional[dict[str, Any]] = None,
|
||||
|
@ -251,7 +252,7 @@ class DictScheme(Munch):
|
|||
return result
|
||||
|
||||
def update(self, d: Mapping[str, Any], validate: bool = True):
|
||||
Munch.update(self, type(self).transform(d, validate))
|
||||
Munch.update(self, type(self).transform(d, validate=validate))
|
||||
|
||||
def __init_subclass__(cls):
|
||||
super().__init_subclass__()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue