miio.utils module¶
- miio.utils.deprecated(reason)[source]¶
This is a decorator which can be used to mark functions and classes as deprecated. It will result in a warning being emitted when the function is used.
- miio.utils.pretty_seconds(x: float) datetime.timedelta [source]¶
Return a timedelta object from seconds.
- miio.utils.pretty_time(x: float) datetime.datetime [source]¶
Return a datetime object from unix timestamp.