@@ -181,7 +181,7 @@ class Client:
181181
182182 def __init__ (self , user_key = None , device = None , api_token = None ,
183183 config_path = "~/.pushoverrc" , profile = "Default" ):
184- params = _get_config (profile , config_path , user_key , api_token )
184+ params = _get_config (profile , config_path , user_key , api_token , device )
185185 self .user_key = params ["user_key" ]
186186 if not self .user_key :
187187 raise UserError
@@ -244,7 +244,7 @@ def send_message(self, message, **kwords):
244244
245245
246246def _get_config (profile = 'Default' , config_path = '~/.pushoverrc' ,
247- user_key = None , api_token = None ):
247+ user_key = None , api_token = None , device = None ):
248248 config_path = os .path .expanduser (config_path )
249249 config = RawConfigParser ()
250250 config .read (config_path )
@@ -257,6 +257,8 @@ def _get_config(profile='Default', config_path='~/.pushoverrc',
257257 params ["user_key" ] = user_key
258258 if api_token :
259259 params ["api_token" ] = api_token
260+ if device :
261+ params ["device" ] = device
260262
261263 if not TOKEN :
262264 init (params ["api_token" ])
0 commit comments