diff --git a/plexpy/api2.py b/plexpy/api2.py index 73239b23..02664762 100644 --- a/plexpy/api2.py +++ b/plexpy/api2.py @@ -391,7 +391,7 @@ class API2(object): return data - def register_device(self, device_id='', device_name='', friendly_name='', onesignal_id='', **kwargs): + def register_device(self, device_id='', device_name='', friendly_name='', onesignal_id=None, **kwargs): """ Registers the Tautulli Android App for notifications. ``` @@ -420,6 +420,10 @@ class API2(object): self._api_result_type = 'error' return + ## TODO: Temporary for backwards compatibility, assume device_id is onesignal_id + if device_id and onesignal_id is None: + onesignal_id = device_id + result = mobile_app.add_mobile_device(device_id=device_id, device_name=device_name, device_token=self._api_apikey,