mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 01:58:20 +00:00
Docstring
This commit is contained in:
parent
a878bec668
commit
5df3aa80d5
@ -104,12 +104,12 @@ class ComplexTypeData:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_json(cls, data: str) -> Self:
|
def from_json(cls, data: str) -> Self:
|
||||||
"""Load JSON string and return a BaseTypeData object."""
|
"""Load JSON string and return a ComplexTypeData object."""
|
||||||
raise NotImplementedError("from_json is not implemented for this type")
|
raise NotImplementedError("from_json is not implemented for this type")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_raw(cls, data: str) -> Self:
|
def from_raw(cls, data: str) -> Self:
|
||||||
"""Decode base64 string and return a BaseTypeData object."""
|
"""Decode base64 string and return a ComplexTypeData object."""
|
||||||
raise NotImplementedError("from_raw is not implemented for this type")
|
raise NotImplementedError("from_raw is not implemented for this type")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user