From 4471dd88979d74bdb6d3fd6b17a57ee3b6bc5c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20M=C3=BCller=20=28ChaoticByte=29?= Date: Fri, 4 Aug 2023 19:46:55 +0200 Subject: [PATCH] Fixed both the name and the documentation of MotionSensor.check_ledindication --- DOCUMENTATION.md | 10 +++++----- yahuelib/controller.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index fcab5d4..2d4cf3d 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -38,7 +38,7 @@ * [get\_sensitivity](#yahuelib.controller.MotionSensor.get_sensitivity) * [set\_sensitivity](#yahuelib.controller.MotionSensor.set_sensitivity) * [get\_sensitivitymax](#yahuelib.controller.MotionSensor.get_sensitivitymax) - * [get\_ledindication](#yahuelib.controller.MotionSensor.get_ledindication) + * [check\_ledindication](#yahuelib.controller.MotionSensor.check_ledindication) * [set\_ledindication](#yahuelib.controller.MotionSensor.set_ledindication) * [get\_presence](#yahuelib.controller.MotionSensor.get_presence) * [yahuelib.utils](#yahuelib.utils) @@ -430,15 +430,15 @@ def get_sensitivitymax() -> int Get the maximum sensititvity of the sensor - + -#### get\_ledindication +#### check\_ledindication ```python -def get_ledindication() -> bool +def check_ledindication() -> bool ``` -Get the maximum sensititvity of the sensor +Check if the LED indication is turned on or off diff --git a/yahuelib/controller.py b/yahuelib/controller.py index e899053..202a3b0 100644 --- a/yahuelib/controller.py +++ b/yahuelib/controller.py @@ -267,8 +267,8 @@ class MotionSensor(_BaseController): data = self._api_request()["config"]["sensitivitymax"] return data - def get_ledindication(self) -> bool: - '''Get the maximum sensititvity of the sensor''' + def check_ledindication(self) -> bool: + '''Check if the LED indication is turned on or off''' data = self._api_request()["config"]["ledindication"] return data