Add setup type hints [k-m] (#63605)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
8c49fff699
commit
d504a4dbda
15 changed files with 44 additions and 23 deletions
|
@ -7,6 +7,7 @@ from homeassistant.components.sensor import SensorEntity
|
|||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import TIME_MILLISECONDS
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from . import MinecraftServer, MinecraftServerEntity
|
||||
from .const import (
|
||||
|
@ -30,7 +31,9 @@ from .const import (
|
|||
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities
|
||||
hass: HomeAssistant,
|
||||
config_entry: ConfigEntry,
|
||||
async_add_entities: AddEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up the Minecraft Server sensor platform."""
|
||||
server = hass.data[DOMAIN][config_entry.unique_id]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue