Postponed evaluation of annotations for integrations (#46455)

This commit is contained in:
Franck Nijhof
2021-02-12 18:54:00 +01:00
committed by GitHub
parent 061d9c5293
commit dd8d4471ec
18 changed files with 54 additions and 22 deletions

View File

@@ -78,11 +78,11 @@ class EsphomeTextSensor(EsphomeEntity):
"""A text sensor implementation for ESPHome."""
@property
def _static_info(self) -> "TextSensorInfo":
def _static_info(self) -> TextSensorInfo:
return super()._static_info
@property
def _state(self) -> Optional["TextSensorState"]:
def _state(self) -> Optional[TextSensorState]:
return super()._state
@property