mirror of
https://github.com/home-assistant/core
synced 2024-08-28 03:36:46 +02:00
![Ville Skyttä](/assets/img/avatar_default.png)
* Avoid some implicit generic Anys * Fix hassio discovery view type hints * Fix http view result type in assert message
15 lines
383 B
Python
15 lines
383 B
Python
"""Support for Actiontec MI424WR (Verizon FIOS) routers."""
|
|
from __future__ import annotations
|
|
|
|
import re
|
|
from typing import Final
|
|
|
|
# mypy: disallow-any-generics
|
|
|
|
LEASES_REGEX: Final[re.Pattern[str]] = re.compile(
|
|
r"(?P<ip>([0-9]{1,3}[\.]){3}[0-9]{1,3})"
|
|
+ r"\smac:\s(?P<mac>([0-9a-f]{2}[:-]){5}([0-9a-f]{2}))"
|
|
+ r"\svalid\sfor:\s(?P<timevalid>(-?\d+))"
|
|
+ r"\ssec"
|
|
)
|