Passed
Push — master ( 1bf5cf...d6ff14 )
by Dave
02:20
created

tests.func_temperature   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 0
1
'''test telegram api'''
2
3
from backend.fcmapp import ApplicationService, ComponentName
4
5
APP = ApplicationService(ComponentName.fullcycle)
6
7
HUMID, TEMPER = APP.readtemperature()
8
9
MESSAGE = '{0}: Temp={1:0.1f}*  Humidity={2:0.1f}%'.format(APP.now(), TEMPER.value or 0, HUMID.value or 0)
10
11
APP.logdebug(MESSAGE)
12
13
APP.shutdown()
14