miio.devtools.simulators.common module

Common functionalities for miio and miot simulators.

miio.devtools.simulators.common.create_info_response(model, addr, mac)[source]

Create a response for miIO.info call using the given model and mac.

miio.devtools.simulators.common.did_and_mac_for_model(model)[source]

Creates a device id and a mac address based on the model name.

These identifiers allow making a simulated device unique for testing.