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