Skip to content

Commit

Permalink
Update _index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sguequierre authored Nov 2, 2023
1 parent ffd6a82 commit 2d6c9ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/components/power-sensor/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@ If a sensor is not configured to have a measurement or fails to read a piece of
For more information, see the [Python SDK Docs](https://python.viam.dev/autoapi/viam/components/power_sensor/client/index.html#viam.components.power_sensor.client.PowerSensorClient.get_readings).

```python
my_sensor = PowerSensor.from_robot(robot=robot, name='my_power_sensor')
my_power_sensor = PowerSensor.from_robot(robot=robot, name='my_power_sensor')

# Get the readings provided by the sensor.
readings = await my_sensor.get_readings()
readings = await my_power_sensor.get_readings()
```

{{% /tab %}}
Expand Down

0 comments on commit 2d6c9ae

Please sign in to comment.