diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 5256544c5e6..51e4526104b 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -1024,18 +1024,6 @@ class MyCoordinator(DataUpdateCoordinator[MyData]): ) ``` -### Entity Performance Optimization -```python -# Use __slots__ for memory efficiency -class MySensor(SensorEntity): - __slots__ = ("_attr_native_value", "_attr_available") - - @property - def should_poll(self) -> bool: - """Disable polling when using coordinator.""" - return False # ✅ Let coordinator handle updates -``` - ## Testing Patterns ### Testing Best Practices @@ -1181,4 +1169,4 @@ python -m script.hassfest --integration-path homeassistant/components/my_integra pytest ./tests/components/my_integration \ --cov=homeassistant.components.my_integration \ --cov-report term-missing -``` \ No newline at end of file +```