mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Fix formatting of mac addresses from dhcp discovery mocking in airzone (#110559)
dhcp returns addresses in lowercase without :
This commit is contained in:
parent
16d2482fe6
commit
0bbe46d236
@ -19,6 +19,7 @@ from homeassistant.config_entries import SOURCE_USER, ConfigEntryState
|
||||
from homeassistant.const import CONF_HOST, CONF_ID, CONF_PORT
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.data_entry_flow import FlowResultType
|
||||
from homeassistant.helpers import device_registry as dr
|
||||
|
||||
from .util import (
|
||||
CONFIG,
|
||||
@ -34,7 +35,7 @@ from tests.common import MockConfigEntry
|
||||
DHCP_SERVICE_INFO = dhcp.DhcpServiceInfo(
|
||||
hostname="airzone",
|
||||
ip="192.168.1.100",
|
||||
macaddress="E84F25000000",
|
||||
macaddress=dr.format_mac("E84F25000000").replace(":", ""),
|
||||
)
|
||||
|
||||
TEST_ID = 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user