Move attribution attribute to Entity base class (#1080)

This commit is contained in:
Franck Nijhof 2021-10-11 23:15:42 +02:00 committed by GitHub
parent 8e2418316d
commit 26d427f396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -63,6 +63,7 @@ Properties should always only return information from memory and not do I/O (lik
| Name | Type | Default | Description | | Name | Type | Default | Description |
| ----------------------- | ------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ----------------------- | ------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| assumed_state | boolean | `False` | Return `True` if the state is based on our assumption instead of reading it from the device. | | assumed_state | boolean | `False` | Return `True` if the state is based on our assumption instead of reading it from the device. |
| attribution | string | `None` | The branding text required by the API provider. |
| available | boolean | `True` | Indicate if Home Assistant is able to read the state and control the underlying device. | | available | boolean | `True` | Indicate if Home Assistant is able to read the state and control the underlying device. |
| device_class | string | `None` | Extra classification of what the device is. Each domain specifies their own. Device classes can come with extra requirements for unit of measurement and supported features. | | device_class | string | `None` | Extra classification of what the device is. Each domain specifies their own. Device classes can come with extra requirements for unit of measurement and supported features. |
| extra_state_attributes | dict | `None` | Extra information to store in the state machine. It needs to be information that further explains the state, it should not be static information like firmware version. | | extra_state_attributes | dict | `None` | Extra information to store in the state machine. It needs to be information that further explains the state, it should not be static information like firmware version. |

View File

@ -21,7 +21,6 @@ Properties should always only return information from memory and not do I/O (lik
| wind_speed | float | `None` | The current wind speed in km/h or mi/h. | wind_speed | float | `None` | The current wind speed in km/h or mi/h.
| wind_bearing | float or string | `None` | The current wind bearing in azimuth angle (degrees) or 1-3 letter cardinal direction. | wind_bearing | float or string | `None` | The current wind bearing in azimuth angle (degrees) or 1-3 letter cardinal direction.
| forecast | array | `None` | Daily or Hourly forecast data. | forecast | array | `None` | Daily or Hourly forecast data.
| attribution | string | `None` | The branding text required by the API provider.
Properties have to follow the units defined in the `unit_system`. Properties have to follow the units defined in the `unit_system`.