From 8ce81001c31b491f673c8d7a4966d9b624c632e8 Mon Sep 17 00:00:00 2001
From: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
Date: Thu, 23 May 2024 10:09:39 +0200
Subject: [PATCH] core-entity-a-m: apply sentence-style capitalization to
headings (#2187)
- to comply with MS Style Guide on [capitalization](https://learn.microsoft.com/en-us/style-guide/capitalization)
---
.../core/bluetooth/bluetooth_fetching_data.md | 2 +-
docs/core/entity/air-quality.md | 4 ++--
docs/core/entity/alarm-control-panel.md | 20 +++++++++----------
docs/core/entity/binary-sensor.md | 4 ++--
docs/core/entity/button.md | 2 +-
docs/core/entity/calendar.md | 12 +++++------
docs/core/entity/camera.md | 10 +++++-----
docs/core/entity/climate.md | 6 +++---
docs/core/entity/conversation.md | 2 +-
docs/core/entity/cover.md | 6 +++---
docs/core/entity/date.md | 2 +-
docs/core/entity/datetime.md | 2 +-
docs/core/entity/device-tracker.md | 4 ++--
docs/core/entity/fan.md | 6 +++---
docs/core/entity/humidifier.md | 4 ++--
docs/core/entity/image.md | 2 +-
docs/core/entity/lawn-mower.md | 6 +++---
docs/core/entity/light.md | 10 +++++-----
docs/core/entity/lock.md | 4 ++--
docs/core/entity/media-player.md | 10 +++++-----
docs/core/entity/notify.md | 2 +-
21 files changed, 60 insertions(+), 60 deletions(-)
diff --git a/docs/core/bluetooth/bluetooth_fetching_data.md b/docs/core/bluetooth/bluetooth_fetching_data.md
index 645e91c0..9f195faf 100644
--- a/docs/core/bluetooth/bluetooth_fetching_data.md
+++ b/docs/core/bluetooth/bluetooth_fetching_data.md
@@ -1,5 +1,5 @@
---
-title: "Fetching Bluetooth Data"
+title: "Fetching Bluetooth data"
---
## Choosing a method to fetch data
diff --git a/docs/core/entity/air-quality.md b/docs/core/entity/air-quality.md
index 3a5a3180..fc982040 100644
--- a/docs/core/entity/air-quality.md
+++ b/docs/core/entity/air-quality.md
@@ -1,6 +1,6 @@
---
-title: Air Quality Entity
-sidebar_label: Air Quality
+title: Air quality entity
+sidebar_label: Air quality
---
## Properties
diff --git a/docs/core/entity/alarm-control-panel.md b/docs/core/entity/alarm-control-panel.md
index dcb6a106..33f45ea4 100644
--- a/docs/core/entity/alarm-control-panel.md
+++ b/docs/core/entity/alarm-control-panel.md
@@ -1,6 +1,6 @@
---
-title: Alarm Control Panel Entity
-sidebar_label: Alarm Control Panel
+title: Alarm control panel entity
+sidebar_label: Alarm control panel
---
An alarm control panel entity controls an alarm. Derive a platform entity from [`homeassistant.components.alarm_control_panel.AlarmControlPanelEntity`](https://github.com/home-assistant/core/blob/dev/homeassistant/components/alarm_control_panel/__init__.py).
@@ -34,7 +34,7 @@ Properties should always only return information from memory and not do I/O (lik
| `disarming` | The alarm is disarming.
| `triggered` | The alarm is triggered.
-## Supported Features
+## Supported features
Supported features are defined by using values in the `AlarmControlPanelEntityFeature` enum
and are combined using the bitwise or (`|`) operator.
@@ -48,7 +48,7 @@ and are combined using the bitwise or (`|`) operator.
| `AlarmControlPanelEntityFeature.ARM_VACATION` | The alarm supports arming in vacation mode.
| `AlarmControlPanelEntityFeature.TRIGGER` | The alarm can be triggered remotely.
-### Code Formats
+### Code formats
Supported code formats are defined by using values in the `CodeFormat` enum.
@@ -75,7 +75,7 @@ class MyAlarm(AlarmControlPanelEntity):
"""Send disarm command."""
```
-### Alarm Arm Home
+### Alarm arm home
Send arm home command.
@@ -90,7 +90,7 @@ class MyAlarm(AlarmControlPanelEntity):
"""Send arm home command."""
```
-### Alarm Arm Away
+### Alarm arm away
Send arm away command.
@@ -105,7 +105,7 @@ class MyAlarm(AlarmControlPanelEntity):
"""Send arm away command."""
```
-### Alarm Arm Night
+### Alarm arm night
Send arm night command.
@@ -120,7 +120,7 @@ class MyAlarm(AlarmControlPanelEntity):
"""Send arm night command."""
```
-### Alarm Arm Vacation
+### Alarm arm vacation
Send arm vacation command.
@@ -135,7 +135,7 @@ class MyAlarm(AlarmControlPanelEntity):
"""Send arm vacation command."""
```
-### Alarm Trigger
+### Alarm trigger
Send alarm trigger command.
@@ -150,7 +150,7 @@ class MyAlarm(AlarmControlPanelEntity):
"""Send alarm trigger command."""
```
-### Alarm Custom Bypass
+### Alarm custom bypass
Send arm custom bypass command.
diff --git a/docs/core/entity/binary-sensor.md b/docs/core/entity/binary-sensor.md
index 358711f6..1698ccf2 100644
--- a/docs/core/entity/binary-sensor.md
+++ b/docs/core/entity/binary-sensor.md
@@ -1,6 +1,6 @@
---
-title: Binary Sensor Entity
-sidebar_label: Binary Sensor
+title: Binary sensor entity
+sidebar_label: Binary sensor
---
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)
diff --git a/docs/core/entity/button.md b/docs/core/entity/button.md
index efc75a07..0ab7ee86 100644
--- a/docs/core/entity/button.md
+++ b/docs/core/entity/button.md
@@ -1,5 +1,5 @@
---
-title: Button Entity
+title: Button entity
sidebar_label: Button
---
diff --git a/docs/core/entity/calendar.md b/docs/core/entity/calendar.md
index 528e8638..177a647b 100644
--- a/docs/core/entity/calendar.md
+++ b/docs/core/entity/calendar.md
@@ -1,5 +1,5 @@
---
-title: Calendar Entity
+title: Calendar entity
sidebar_label: Calendar
---
@@ -37,7 +37,7 @@ Assistant timezone. An entity should call `homeassistant.util.dt.now` to get the
current time which has a `tzinfo` value set to the HomeAssistant timezone or examine
`homeassistant.components.util.dt.DEFAULT_TIMEZONE`
-## Supported Features
+## Supported features
Supported features are defined by using values in the `CalendarEntityFeature` enum
and are combined using the bitwise or (`|`) operator.
@@ -50,7 +50,7 @@ and are combined using the bitwise or (`|`) operator.
## Methods
-### Get Events
+### Get events
A calendar entity can return events that occur during a particular time range. Some notes for implementors:
@@ -80,7 +80,7 @@ class MyCalendar(CalendarEntity):
"""Return calendar events within a datetime range."""
```
-### Create Events
+### Create events
A calendar entity may support creating events by specifying the `CREATE_EVENT` supported feature. Integrations that support mutation must handle rfc5545 fields and best practices such as preserving any new unknown fields that are set and recurring events.
@@ -93,7 +93,7 @@ class MyCalendar(CalendarEntity):
"""Add a new event to calendar."""
```
-### Delete Events
+### Delete events
A calendar entity may support deleting events by specifying the `DELETE_EVENT` supported feature. Integrations that support mutation must support rfc5545 recurring events.
@@ -118,7 +118,7 @@ class MyCalendar(CalendarEntity):
"""Delete an event on the calendar."""
```
-### Update Events
+### Update events
A calendar entity may support updating events by specifying the `UPDATE_EVENT` supported feature. Integrations that support mutation must support rfc5545 recurring events.
diff --git a/docs/core/entity/camera.md b/docs/core/entity/camera.md
index 814f885c..5efaf0cc 100644
--- a/docs/core/entity/camera.md
+++ b/docs/core/entity/camera.md
@@ -1,5 +1,5 @@
---
-title: Camera Entity
+title: Camera entity
sidebar_label: Camera
---
@@ -23,7 +23,7 @@ Properties should always only return information from memory and not do I/O (lik
| motion_detection_enabled | `bool` | `False` | Indication of whether the camera has motion detection enabled. |
| use_stream_for_stills | `bool` | `False` | Determines whether or not to use the `Stream` integration to generate still images |
-## Supported Features
+## Supported features
Supported features are defined by using values in the `CameraEntityFeature` enum
and are combined using the bitwise or (`|`) operator.
@@ -35,7 +35,7 @@ and are combined using the bitwise or (`|`) operator.
## Methods
-### Camera Image
+### Camera image
When the width and height are passed, scaling should be done on a best-effort basis. The UI will fall back to scaling at the display layer if scaling cannot be done by the camera.
@@ -64,7 +64,7 @@ class MyCamera(Camera):
```
-### Stream Source
+### Stream source
The stream source should return a url that is usable by ffmpeg (e.g. an RTSP url). Requires `CameraEntityFeature.STREAM`.
@@ -80,7 +80,7 @@ class MyCamera(Camera):
A common way for a camera entity to render a camera still image is to pass the stream source to `async_get_image` in the `ffmpeg` component.
-### WebRTC Streams
+### WebRTC streams
WebRTC enabled cameras can be used by facilitating a direct connection with the home assistant frontend. This usage requires `CameraEntityFeature.STREAM` with `frontend_stream_type` set to `StreamType.WEB_RTC`. The integration should implement `async_handle_web_rtc_offer` which passes the frontend's SDP offer to the device and returns back the answer.
diff --git a/docs/core/entity/climate.md b/docs/core/entity/climate.md
index 98add093..b4354523 100644
--- a/docs/core/entity/climate.md
+++ b/docs/core/entity/climate.md
@@ -1,5 +1,5 @@
---
-title: Climate Entity
+title: Climate entity
sidebar_label: Climate
---
@@ -52,7 +52,7 @@ enum. If you want another mode, add a preset instead.
| `HVACMode.DRY` | The device is set to dry/humidity mode. |
| `HVACMode.FAN_ONLY` | The device only has the fan on. No heating or cooling taking place. |
-### HVAC Action
+### HVAC action
The HVAC action describes the _current_ action. This is different from the mode, because if a device is set to heat, and the target temperature is already achieved, the device will not be actively heating anymore. It is only allowed to use the built-in HVAC actions, provided by the `HVACAction` enum.
@@ -109,7 +109,7 @@ The device fan can have different swing modes that it wants the user to know abo
| `SWING_HORIZONTAL` | The fan is swinging horizontal. |
| `SWING_BOTH` | The fan is swinging both horizontal and vertical. |
-## Supported Features
+## Supported features
Supported features are defined by using values in the `ClimateEntityFeature` enum
and are combined using the bitwise or (`|`) operator.
diff --git a/docs/core/entity/conversation.md b/docs/core/entity/conversation.md
index 42d34bdd..440764ab 100644
--- a/docs/core/entity/conversation.md
+++ b/docs/core/entity/conversation.md
@@ -1,5 +1,5 @@
---
-title: Conversation Entity
+title: Conversation entity
sidebar_label: Conversation
---
diff --git a/docs/core/entity/cover.md b/docs/core/entity/cover.md
index 7bd4a10b..64bbd0f3 100644
--- a/docs/core/entity/cover.md
+++ b/docs/core/entity/cover.md
@@ -1,5 +1,5 @@
---
-title: Cover Entity
+title: Cover entity
sidebar_label: Cover
---
@@ -19,7 +19,7 @@ Properties should always only return information from memory and not do I/O (lik
| is_closing | bool | None
| `None` | If the cover is closing or not. Used to determine `state`.
| is_opening | bool | None
| `None` | If the cover is opening or not. Used to determine `state`.
-### Device Classes
+### Device classes
| Constant | Description
|----------|-----------------------|
@@ -43,7 +43,7 @@ Properties should always only return information from memory and not do I/O (lik
| `STATE_CLOSING` | The cover is in the process of closing to reach a set position.
| `STATE_CLOSED` | The cover has reach the closed position.
-## Supported Features
+## Supported features
Supported features are defined by using values in the `CoverEntityFeature` enum
and are combined using the bitwise or (`|`) operator.
diff --git a/docs/core/entity/date.md b/docs/core/entity/date.md
index 2476dac9..e3812b70 100644
--- a/docs/core/entity/date.md
+++ b/docs/core/entity/date.md
@@ -1,5 +1,5 @@
---
-title: Date Entity
+title: Date entity
sidebar_label: Date
---
diff --git a/docs/core/entity/datetime.md b/docs/core/entity/datetime.md
index b9dc3404..e07e03d0 100644
--- a/docs/core/entity/datetime.md
+++ b/docs/core/entity/datetime.md
@@ -1,5 +1,5 @@
---
-title: Date/Time Entity
+title: Date/Time entity
sidebar_label: Date/Time
---
diff --git a/docs/core/entity/device-tracker.md b/docs/core/entity/device-tracker.md
index f56be9dd..c54cf2d6 100644
--- a/docs/core/entity/device-tracker.md
+++ b/docs/core/entity/device-tracker.md
@@ -1,6 +1,6 @@
---
-title: Device Tracker Entity
-sidebar_label: Device Tracker
+title: Device tracker entity
+sidebar_label: Device tracker
---
A device tracker is a read-only entity that provides presence information. There are two types of device tracker entities, a ScannerEntity and a TrackerEntity.
diff --git a/docs/core/entity/fan.md b/docs/core/entity/fan.md
index 630edd7d..04786c6b 100644
--- a/docs/core/entity/fan.md
+++ b/docs/core/entity/fan.md
@@ -1,5 +1,5 @@
---
-title: Fan Entity
+title: Fan entity
sidebar_label: Fan
---
@@ -21,7 +21,7 @@ Properties should always only return information from memory and not do I/O (lik
| preset_modes | list[str] | None
| `None` | The list of supported preset_modes. This is an arbitrary list of str and should not contain any speeds. |
| speed_count | `int` | 100 | The number of speeds the fan supports. |
-### Preset Modes
+### Preset modes
A fan may have preset modes that automatically control the percentage speed or other functionality. Common examples include `auto`, `smart`, `whoosh`, `eco`, and `breeze`. If no preset mode is set, the `preset_mode` property must be set to `None`.
@@ -29,7 +29,7 @@ Preset modes should not include named (manual) speed settings as these should be
Manually setting a speed must disable any set preset mode. If it is possible to set a percentage speed manually without disabling the preset mode, create a switch or service to represent the mode.
-## Supported Features
+## Supported features
Supported features are defined by using values in the `FanEntityFeature` enum
and are combined using the bitwise or (`|`) operator.
diff --git a/docs/core/entity/humidifier.md b/docs/core/entity/humidifier.md
index 0f10f45f..fb4ccad4 100644
--- a/docs/core/entity/humidifier.md
+++ b/docs/core/entity/humidifier.md
@@ -1,5 +1,5 @@
---
-title: Humidifier Entity
+title: Humidifier entity
sidebar_label: Humidifier
---
@@ -47,7 +47,7 @@ A device can have different modes of operation that it might want to show to the
| `MODE_AUTO` | Device is controlling humidity by itself |
| `MODE_BABY` | Device is trying to optimize for babies |
-## Supported Features
+## Supported features
Supported features are defined by using values in the `HumidifierEntityFeature` enum
and are combined using the bitwise or (`|`) operator.
diff --git a/docs/core/entity/image.md b/docs/core/entity/image.md
index 44a37311..de93a839 100644
--- a/docs/core/entity/image.md
+++ b/docs/core/entity/image.md
@@ -1,5 +1,5 @@
---
-title: Image Entity
+title: Image entity
sidebar_label: Image
---
diff --git a/docs/core/entity/lawn-mower.md b/docs/core/entity/lawn-mower.md
index 8c4cbeb9..1facc937 100644
--- a/docs/core/entity/lawn-mower.md
+++ b/docs/core/entity/lawn-mower.md
@@ -1,6 +1,6 @@
---
-title: Lawn Mower Entity
-sidebar_label: Lawn Mower
+title: Lawn mower entity
+sidebar_label: Lawn mower
---
Derive entity platforms from [`homeassistant.components.lawn_mower.LawnMowerEntity`](https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/lawn_mower/__init__.py)
@@ -25,7 +25,7 @@ Properties should always only return information from memory and not do I/O (lik
| `PAUSED` | The lawn mower was active and is now paused.
| `ERROR` | The lawn mower encountered an error while active and needs assistance.
-## Supported Features
+## Supported features
Supported features are defined by using values in the `LawnMowerEntityFeature` enum
and are combined using the bitwise or (`|`) operator.
diff --git a/docs/core/entity/light.md b/docs/core/entity/light.md
index 64a5fcd2..644b4968 100644
--- a/docs/core/entity/light.md
+++ b/docs/core/entity/light.md
@@ -1,5 +1,5 @@
---
-title: Light Entity
+title: Light entity
sidebar_label: Light
---
@@ -25,7 +25,7 @@ A light entity controls the brightness, hue and saturation color value, white va
| supported_color_modes | set[ColorMode] | None
| `None` | Flag supported color modes.
| xy_color | tuple[float, float] | None
| `None` | The xy color value (float, float). This property will be copied to the light's state attribute when the light's color mode is set to `ColorMode.XY` and ignored otherwise.
-## Color Modes
+## Color modes
New integrations must implement both `color_mode` and `supported_color_modes`. If an integration is upgraded to support color mode, both `color_mode` and `supported_color_modes` should be implemented.
@@ -75,7 +75,7 @@ There are two white color modes, `ColorMode.COLOR_TEMP` and `ColorMode.WHITE`. T
A lamp with adjustable color temperature is typically implemented by at least two banks of LEDs, with different color temperature, typically one bank of warm-white LEDs and one bank of cold-white LEDs.
A light with non-adjustable color temperature typically only has a single bank of white LEDs.
-### Color Mode when rendering effects
+### Color mode when rendering effects
When rendering an effect, the `color_mode` should be set according to the adjustments supported by the
effect. If the effect does not support any adjustments, the `color_mode` should be set to `ColorMode.ONOFF`.
@@ -86,7 +86,7 @@ indicated by the `supported_color_mode` property:
- A light which supports colors is allowed to set color_mode to `ColorMode.ONOFF` or `ColorMode.BRIGHTNESS` when controlled by an effect
- A light which supports brightness is allowed to set color_mode to `ColorMode.ONOFF` when controlled by an effect
-## Supported Features
+## Supported features
Supported features are defined by using values in the `LightEntityFeature` enum
and are combined using the bitwise or (`|`) operator.
@@ -99,7 +99,7 @@ and are combined using the bitwise or (`|`) operator.
## Methods
-### Turn on Light Device
+### Turn on light device
```python
class MyLightEntity(LightEntity):
diff --git a/docs/core/entity/lock.md b/docs/core/entity/lock.md
index 548f9ead..5b0b2ef4 100644
--- a/docs/core/entity/lock.md
+++ b/docs/core/entity/lock.md
@@ -1,5 +1,5 @@
---
-title: Lock Entity
+title: Lock entity
sidebar_label: Lock
---
@@ -22,7 +22,7 @@ Properties should always only return information from memory and not do I/O (lik
| is_opening | bool | None | Indication of whether the lock is currently opening. Used to determine `state`.
| is_open | bool | None | Indication of whether the lock is currently open. Used to determine `state`.
-## Supported Features
+## Supported features
Supported features are defined by using values in the `LockEntityFeature` enum
and are combined using the bitwise or (`|`) operator.
diff --git a/docs/core/entity/media-player.md b/docs/core/entity/media-player.md
index bd8546c4..bb3b0d89 100644
--- a/docs/core/entity/media-player.md
+++ b/docs/core/entity/media-player.md
@@ -1,6 +1,6 @@
---
-title: Media Player Entity
-sidebar_label: Media Player
+title: Media player entity
+sidebar_label: Media player
---
:::info Incomplete
@@ -49,7 +49,7 @@ Properties should always only return information from memory and not do I/O (lik
| volume_level | float | None
| `None` | Volume level of the media player in the range (0..1).
| volume_step | float | None
| 0.1 | Volume step to use for the `volume_up` and `volume_down` services.
-## Supported Features
+## Supported features
Supported features are defined by using values in the `MediaPlayerEntityFeature` enum
and are combined using the bitwise or (`|`) operator.
@@ -94,7 +94,7 @@ The state of a media player is defined by using values in the `MediaPlayerState`
## Methods
-### Play Media
+### Play media
Tells the media player to play media. Implement it using the following:
@@ -130,7 +130,7 @@ The `enqueue` attribute is a string enum `MediaPlayerEnqueue`:
When the `announce` boolean attribute is set to `true`, the media player should try to pause the current music, announce the media to the user and then resume the music.
-### Browse Media
+### Browse media
If the media player supports browsing media, it should implement the following method:
diff --git a/docs/core/entity/notify.md b/docs/core/entity/notify.md
index 04e58ba6..259cb24c 100644
--- a/docs/core/entity/notify.md
+++ b/docs/core/entity/notify.md
@@ -1,5 +1,5 @@
---
-title: Notify Entity
+title: Notify entity
sidebar_label: Notify
---