mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-14 21:06:28 +00:00
Fix minor typo in example code (#1806)
This commit is contained in:
parent
8f245b6256
commit
6d3f0204d3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user