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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue