Skip to content

Commit b880308

Browse files
authored
Remove deprecation warnings from 0.42 (#11861)
1 parent 627608a commit b880308

File tree

2 files changed

+28
-47
lines changed

2 files changed

+28
-47
lines changed

source/_docs/automation/trigger.markdown

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ automation:
2222
mood: happy
2323
```
2424
25-
<div class='note warning'>
26-
27-
Starting 0.42, it is no longer possible to listen for event `homeassistant_start`. Use the 'homeassistant' platform below instead.
28-
29-
</div>
30-
3125
### Home Assistant trigger
3226
3327
Triggers when Home Assistant starts up or shuts down.

source/_docs/configuration/events.markdown

Lines changed: 28 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -8,62 +8,49 @@ The core of Home Assistant is the event bus. The event bus allows any integratio
88

99
Home Assistant contains a few built-in events that are used to coordinate between various components.
1010

11-
### Event `homeassistant_start`
12-
Event `homeassistant_start` is fired when all integrations from the configuration have been initialized. This is the event that will start the timer firing off `time_changed` events.
13-
14-
<div class='note warning'>
15-
16-
Starting 0.42, it is no longer possible to listen for event `homeassistant_start`. Use the 'homeassistant' [platform](/docs/automation/trigger) instead.
17-
18-
</div>
19-
20-
### Event `homeassistant_stop`
21-
Event `homeassistant_stop` is fired when Home Assistant is shutting down. It should be used to close any open connection or release any resources.
22-
23-
2411
### Event `state_changed`
2512
Event `state_changed` is fired when a state changes. Both `old_state` and `new_state` are state objects. [Documentation about state objects.](/topics/state_object/)
2613

27-
Field | Description
28-
----- | -----------
29-
`entity_id` | Entity ID of the changed entity. Example: `light.kitchen`
30-
`old_state` | The previous state of the entity before it changed. This field is omitted if the entity is new.
31-
`new_state` | The new state of the entity. This field is omitted if the entity is removed from the state machine.
14+
| Field | Description |
15+
| ----------- | --------------------------------------------------------------------------------------------------- |
16+
| `entity_id` | Entity ID of the changed entity. Example: `light.kitchen` |
17+
| `old_state` | The previous state of the entity before it changed. This field is omitted if the entity is new. |
18+
| `new_state` | The new state of the entity. This field is omitted if the entity is removed from the state machine. |
3219

3320

3421
### Event `time_changed`
3522
Event `time_changed` is fired every second by the timer and contains the current time.
3623

37-
Field | Description
38-
----- | -----------
39-
`now` | A [datetime object](https://docs.python.org/3.4/library/datetime.html#datetime.datetime) containing the current time in UTC.
24+
| Field | Description |
25+
| ----- | ---------------------------------------------------------------------------------------------------------------------------- |
26+
| `now` | A [datetime object](https://docs.python.org/3.4/library/datetime.html#datetime.datetime) containing the current time in UTC. |
4027

4128

4229
### Event `service_registered`
4330
Event `service_registered` is fired when a new service has been registered within Home Assistant.
4431

45-
Field | Description
46-
----- | -----------
47-
`domain` | Domain of the service. Example: `light`.
48-
`service` | The service to call. Example: `turn_on`
32+
| Field | Description |
33+
| --------- | ---------------------------------------- |
34+
| `domain` | Domain of the service. Example: `light`. |
35+
| `service` | The service to call. Example: `turn_on` |
4936

5037

5138
### Event `call_service`
5239
Event `call_service` is fired to call a service.
5340

54-
Field | Description
55-
----- | -----------
56-
`domain` | Domain of the service. Example: `light`.
57-
`service` | The service to call. Example: `turn_on`
58-
`service_data` | Dictionary with the service call parameters. Example: `{ 'brightness': 120 }`.
59-
`service_call_id` | String with a unique call id. Example: `23123-4`.
41+
| Field | Description |
42+
| ----------------- | ------------------------------------------------------------------------------ |
43+
| `domain` | Domain of the service. Example: `light`. |
44+
| `service` | The service to call. Example: `turn_on` |
45+
| `service_data` | Dictionary with the service call parameters. Example: `{ 'brightness': 120 }`. |
46+
| `service_call_id` | String with a unique call id. Example: `23123-4`. |
6047

6148
### Event `service_executed`
6249
Event `service_executed` is fired by the service handler to indicate the service is done.
6350

64-
Field | Description
65-
----- | -----------
66-
`service_call_id` | String with the unique call id of the service call that was executed. Example: `23123-4`.
51+
| Field | Description |
52+
| ----------------- | ----------------------------------------------------------------------------------------- |
53+
| `service_call_id` | String with the unique call id of the service call that was executed. Example: `23123-4`. |
6754

6855
<div class='note warning'>
6956

@@ -75,15 +62,15 @@ Field | Description
7562

7663
Event `platform_discovered` is fired when a new platform has been discovered by the [`discovery`](/integrations/discovery/) component.
7764

78-
Field | Description
79-
----- | -----------
80-
`service` | The platform that is discovered. Example: `zwave`.
81-
`discovered` | Dictionary containing discovery information. Example: `{ "host": "192.168.1.10", "port": 8889}`.
65+
| Field | Description |
66+
| ------------ | ------------------------------------------------------------------------------------------------ |
67+
| `service` | The platform that is discovered. Example: `zwave`. |
68+
| `discovered` | Dictionary containing discovery information. Example: `{ "host": "192.168.1.10", "port": 8889}`. |
8269

8370

8471
### Event `component_loaded`
8572
Event `component_loaded` is fired when a new integration has been loaded and initialized.
8673

87-
Field | Description
88-
----- | -----------
89-
`component` | Domain of the integration that has just been initialized. Example: `light`.
74+
| Field | Description |
75+
| ----------- | --------------------------------------------------------------------------- |
76+
| `component` | Domain of the integration that has just been initialized. Example: `light`. |

0 commit comments

Comments
 (0)