ha_types ¶
to_dict ¶
to_dict(obj: Any) -> Dict[str, Any]
Convert a dataclass object to dict
Parameters:
-
obj
(Any
) –The sensor object to convert
Returns:
Source code in src/grottext/ha/ha_types.py
107 108 109 110 111 112 113 114 115 116 117 118 |
|