mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 05:50:13 +00:00
Improve CoordinatorEntity typing (#68441)
This commit is contained in:
@@ -172,12 +172,11 @@ async def async_setup_entry(
|
||||
)
|
||||
|
||||
|
||||
class GitHubSensorEntity(CoordinatorEntity[dict[str, Any]], SensorEntity):
|
||||
class GitHubSensorEntity(CoordinatorEntity[GitHubDataUpdateCoordinator], SensorEntity):
|
||||
"""Defines a GitHub sensor entity."""
|
||||
|
||||
_attr_attribution = "Data provided by the GitHub API"
|
||||
|
||||
coordinator: GitHubDataUpdateCoordinator
|
||||
entity_description: GitHubSensorEntityDescription
|
||||
|
||||
def __init__(
|
||||
|
||||
Reference in New Issue
Block a user