Fix minor typo in example code (#1806)

This commit is contained in:
Scott Giminiani 2023-06-19 11:16:29 -07:00 committed by GitHub
parent 8f245b6256
commit 6d3f0204d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,7 +219,7 @@ The below code snippet gives an example of best practices for when to implement
```py
class SomeEntity():
_attr_device_clas = SensorDeviceClass.TEMPERATURE # This will be common to all instances of SomeEntity
_attr_device_class = SensorDeviceClass.TEMPERATURE # This will be common to all instances of SomeEntity
def __init__(self, device):
self._device = device
self._attr_available = False # This overrides the default