From a531c6a520059fb4a5a4e91c9a892aa1eeca33d7 Mon Sep 17 00:00:00 2001 From: Tom Brien Date: Thu, 11 Jun 2020 10:58:10 +0100 Subject: [PATCH] Update full example for modbus binary_sensor (#13717) Someone did a bit of a drive by on the doc discord yesterday pointing out that the _full_ example with `scan_interval` hadn't been updated to reflect changes from home-assistant/core#30004. The first example was updated but not this one. I've also tweaked it to more closely match the top example The user haven't been back since to see they could of made the change, so here it is. --- source/_integrations/binary_sensor.modbus.markdown | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/_integrations/binary_sensor.modbus.markdown b/source/_integrations/binary_sensor.modbus.markdown index 429c33517ef..e400469c6d6 100644 --- a/source/_integrations/binary_sensor.modbus.markdown +++ b/source/_integrations/binary_sensor.modbus.markdown @@ -74,13 +74,14 @@ Example a sensor with a 10 seconds scan interval: binary_sensor: - platform: modbus scan_interval: 10 - coils: + inputs: - name: Sensor1 hub: hub1 slave: 1 - coil: 100 + address: 100 - name: Sensor2 hub: hub1 slave: 1 - coil: 110 + address: 110 + input_type: discrete_input ```