From e6ef84dc1a1effa15f0d535703f48d7d8ebe4f35 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Mon, 11 Feb 2019 15:01:22 +0100 Subject: [PATCH] Update travis --- changelog/v1.8.0.rst | 6 +++--- cookbook/bme280_environment.rst | 4 ++-- travis.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/changelog/v1.8.0.rst b/changelog/v1.8.0.rst index ed96fb099..afb29c05d 100644 --- a/changelog/v1.8.0.rst +++ b/changelog/v1.8.0.rst @@ -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: diff --git a/cookbook/bme280_environment.rst b/cookbook/bme280_environment.rst index 51db21f2a..4046d262c 100644 --- a/cookbook/bme280_environment.rst +++ b/cookbook/bme280_environment.rst @@ -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 diff --git a/travis.py b/travis.py index afbb356db..e15c66891 100644 --- a/travis.py +++ b/travis.py @@ -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: