From 932c8939864a1dd9b8b52b2a5310582f461f39a5 Mon Sep 17 00:00:00 2001 From: Emanuele Palazzetti Date: Thu, 12 Oct 2023 13:20:26 +0000 Subject: [PATCH] docs: improved docstring for update() method --- custom_components/econnect_metronet/devices.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom_components/econnect_metronet/devices.py b/custom_components/econnect_metronet/devices.py index 28e8c11..1c5583e 100644 --- a/custom_components/econnect_metronet/devices.py +++ b/custom_components/econnect_metronet/devices.py @@ -155,6 +155,9 @@ def update(self): 3. Updates the last known IDs for sectors and inputs. 4. Updates internal state for sectors' and inputs' statuses. + Returns: + dict: A dictionary containing the latest retrieved inventory. + Raises: HTTPError: If there's an error while making the HTTP request. ParseError: If there's an error while parsing the response.