FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-kasa/kasa/interfaces/time.py at patch · IDavinciCode/python-kasa · GitHub
IDavinciCode
python-kasa
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-kasa
/
kasa
/
interfaces
/
time.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (18 loc) · 585 Bytes
Breadcrumbs
python-kasa
/
kasa
/
interfaces
/
time.py
Copy path
File metadata and controls
26 lines (18 loc) · 585 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""Module for time interface."""
from
__future__
import
annotations
from
abc
import
ABC
,
abstractmethod
from
datetime
import
datetime
,
tzinfo
from
..
module
import
Module
class
Time
(
Module
,
ABC
):
"""Base class for tplink time module."""
@
property
@
abstractmethod
def
time
(
self
)
->
datetime
:
"""Return timezone aware current device time."""
@
property
@
abstractmethod
def
timezone
(
self
)
->
tzinfo
:
"""Return current timezone."""
@
abstractmethod
async
def
set_time
(
self
,
dt
:
datetime
)
->
dict
:
"""Set the device time."""
Back
|
FazBrowse Home
|
New Git URL