diff --git a/custom_components/mbapi2020/webapi.py b/custom_components/mbapi2020/webapi.py index 0b2b46ea..7a2aaab6 100644 --- a/custom_components/mbapi2020/webapi.py +++ b/custom_components/mbapi2020/webapi.py @@ -134,6 +134,10 @@ async def _request( except Exception: LOGGER.debug(traceback.format_exc()) + async def get_user(self): + """Get standard user information.""" + return await self._request("get", "/v1/user") + async def get_user_info(self): """Get all devices associated with an API key.""" return await self._request("get", "/v2/vehicles")