Update travis

This commit is contained in:
Otto Winter 2019-02-11 15:01:22 +01:00
parent dd5f63036f
commit e6ef84dc1a
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
3 changed files with 6 additions and 6 deletions

View File

@ -125,8 +125,8 @@ Other notable changes
on_...:
then:
- switch.turn_on:
id: my_switch
- switch.turn_on:
id: my_switch
You can now write:
@ -134,7 +134,7 @@ Other notable changes
on_...:
then:
- switch.turn_on: my_switch
- switch.turn_on: my_switch
Or even shorter:

View File

@ -41,8 +41,8 @@ After validating the sensor is working, we can proceed and add some formulas.
- platform: template
name: "Absolute Humidity"
lambda: |-
const float mw = 18.01534; // molar mass of water g/mol
const float r = 8.31447215; // Universal gas constant J/mol/K
const float mw = 18.01534; // molar mass of water g/mol
const float r = 8.31447215; // Universal gas constant J/mol/K
return (6.112 * powf(2.718281828, (17.67 * id(bme280_temperature).state) / (id(bme280_temperature).state + 243.5)) * id(bme280_humidity).state * mw) / ((273.15 + id(bme280_temperature).state) * r); // in grams/m^3
update_interval: 15s

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -15,7 +15,7 @@ def find_all(a_str, sub):
column += len(sub)
for f in sorted(Path('.').glob('*.rst')):
for f in sorted(Path('.').glob('**/*.rst')):
try:
content = f.read_text('utf-8')
except UnicodeDecodeError: