Debian Codegraph @

plyer/facades/humidity.py

raw symbols SCIP
1 class Humidity:
2 '''Humidity facade.
3 Humidity sensor returns value of humidity.
4 With method `enable` you can turn on Humidity sensor and
5 'disable' method stops the sensor.
6 Use property `tell` to get humidity value.
7
8 Supported Platforms
9 -------------------
10 Android
11 '''
12
13 @property
14 def tell(self):
15 '''Current humidity'''
16 return self._get_humidity()
17
18 def enable(self):
19 '''Enable Humidity sensor.'''
20 self._enable()
21
22 def disable(self):
23 '''Disable Humidity sensor.'''
24 self._disable()
25
26 # private
27 def _get_humidity(self, **kwargs):
28 raise NotImplementedError()
29
30 def _enable(self, **kwargs):
31 raise NotImplementedError()
32
33 def _disable(self, **kwargs):
34 raise NotImplementedError()