Fixed both the name and the documentation of MotionSensor.check_ledindication

This commit is contained in:
Julian Müller (ChaoticByte) 2023-08-04 19:46:55 +02:00
parent 52a85486d9
commit 4471dd8897
2 changed files with 7 additions and 7 deletions

View file

@ -38,7 +38,7 @@
* [get\_sensitivity](#yahuelib.controller.MotionSensor.get_sensitivity) * [get\_sensitivity](#yahuelib.controller.MotionSensor.get_sensitivity)
* [set\_sensitivity](#yahuelib.controller.MotionSensor.set_sensitivity) * [set\_sensitivity](#yahuelib.controller.MotionSensor.set_sensitivity)
* [get\_sensitivitymax](#yahuelib.controller.MotionSensor.get_sensitivitymax) * [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) * [set\_ledindication](#yahuelib.controller.MotionSensor.set_ledindication)
* [get\_presence](#yahuelib.controller.MotionSensor.get_presence) * [get\_presence](#yahuelib.controller.MotionSensor.get_presence)
* [yahuelib.utils](#yahuelib.utils) * [yahuelib.utils](#yahuelib.utils)
@ -430,15 +430,15 @@ def get_sensitivitymax() -> int
Get the maximum sensititvity of the sensor Get the maximum sensititvity of the sensor
<a id="yahuelib.controller.MotionSensor.get_ledindication"></a> <a id="yahuelib.controller.MotionSensor.check_ledindication"></a>
#### get\_ledindication #### check\_ledindication
```python ```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
<a id="yahuelib.controller.MotionSensor.set_ledindication"></a> <a id="yahuelib.controller.MotionSensor.set_ledindication"></a>

View file

@ -267,8 +267,8 @@ class MotionSensor(_BaseController):
data = self._api_request()["config"]["sensitivitymax"] data = self._api_request()["config"]["sensitivitymax"]
return data return data
def get_ledindication(self) -> bool: def check_ledindication(self) -> bool:
'''Get the maximum sensititvity of the sensor''' '''Check if the LED indication is turned on or off'''
data = self._api_request()["config"]["ledindication"] data = self._api_request()["config"]["ledindication"]
return data return data