Skip to content

Commit 9b03bfb

Browse files
authored
Revise deprecation warnings
Updated deprecation warnings for User and HomeData classes.
1 parent 681a0df commit 9b03bfb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lnetatmo.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,11 @@ class User:
299299
"""
300300
warnings.warn("The 'User' class is no longer maintained by Netatmo",
301301
DeprecationWarning )
302-
warnings.warn("The 'User' class code is deprecated.\n" ,
303-
RuntimeWarning )
302+
304303
def __init__(self, authData):
304+
#
305+
warnings.warn("The 'User' class code is deprecated and no longer maintained by Netatmo.\n" ,
306+
RuntimeWarning )
305307
postParams = {
306308
"access_token" : authData.accessToken
307309
}
@@ -670,8 +672,10 @@ class HomeData:
670672
home : Home name of the home where's devices are installed
671673
"""
672674
def __init__(self, authData, home=None):
675+
#
673676
warnings.warn("The 'HomeData' class is deprecated'",
674677
DeprecationWarning )
678+
#
675679
warnings.warn("The HomeData code is deprecated.\n" ,
676680
RuntimeWarning )
677681

0 commit comments

Comments
 (0)