Add link to source for different entities (#1179)

* Update weather.md

* Update binary-sensor.md

* Update remote.md

* Update sensor.md

* Update vacuum.md

* Update water-heater.md

* Update vacuum.md
This commit is contained in:
Michael 2022-01-09 06:28:23 +01:00 committed by GitHub
parent a0a2a6dcf6
commit 6f535de5a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 2 deletions

View File

@ -3,7 +3,7 @@ title: Binary Sensor Entity
sidebar_label: Binary Sensor
---
A binary sensor is a sensor that can only have two states.
A binary sensor is a sensor that can only have two states. Derive entity platforms from [`homeassistant.components.binary_sensor.BinarySensorEntity`](https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/binary_sensor/__init__.py)
## Properties

View File

@ -3,6 +3,8 @@ title: Remote Entity
sidebar_label: Remote
---
Derive entity platforms from [`homeassistant.components.remote.RemoteEntity`](https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/remote/__init__.py)
## Properties
:::tip

View File

@ -3,7 +3,7 @@ title: Sensor Entity
sidebar_label: Sensor
---
A sensor is a read-only entity that provides some information. Information has a value and optionally, a unit of measurement.
A sensor is a read-only entity that provides some information. Information has a value and optionally, a unit of measurement. Derive entity platforms from [`homeassistant.components.sensor.SensorEntity`](https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/sensor/__init__.py)
## Properties

View File

@ -3,12 +3,18 @@ title: Vacuum Entity
sidebar_label: Vacuum
---
Derive entity platforms from [`homeassistant.components.vacuum.StateVacuumEntity`](https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/vacuum/__init__.py)
## Properties
:::tip
Properties should always only return information from memory and not do I/O (like network requests). Implement `update()` or `async_update()` to fetch data.
:::
:::note
`VacuumEntity` is deprecated and will be removed in future releases. Please use or migrate to the `StateVacuumEntity`
:::
:::caution
VacuumEntity and StateVacuumEntity do not support attribute shorthand for [property implementation](../entity.md#entity-class-or-instance-attributes)
:::

View File

@ -3,6 +3,8 @@ title: Water Heater Entity
sidebar_label: Water Heater
---
Derive entity platforms from [`homeassistant.components.water_heater.WaterHeaterEntity`](https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/water_heater/__init__.py)
## Properties
:::tip

View File

@ -3,6 +3,8 @@ title: Weather Entity
sidebar_label: Weather
---
Derive entity platforms from [`homeassistant.components.weather.WeatherEntity`](https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/weather/__init__.py)
## Properties
:::tip