Remove debug print (#63460)

This commit is contained in:
Simone Chemelli 2022-01-05 15:34:33 +01:00 committed by GitHub
parent 5196b75ed6
commit 969930b9c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 0 additions and 19 deletions

View file

@ -1043,9 +1043,7 @@ async def test_flux_with_multiple_lights(
def event_date(hass, event, now=None):
if event == SUN_EVENT_SUNRISE:
print(f"sunrise {sunrise_time}")
return sunrise_time
print(f"sunset {sunset_time}")
return sunset_time
with patch(

View file

@ -216,7 +216,6 @@ async def test_create_radio_button_group(hass, hass_ws_client, properties_data):
# Make sure the baseline is correct
assert len(rb_props) == 3
print(rb_props)
rb_props[0]["value"].append("1")

View file

@ -507,11 +507,6 @@ async def test_options_remove_x10_device(hass: HomeAssistant):
config_entry.add_to_hass(hass)
result = await _options_init_form(hass, config_entry.entry_id, STEP_REMOVE_X10)
for device in config_entry.options[CONF_X10]:
housecode = device[CONF_HOUSECODE].upper()
unitcode = device[CONF_UNITCODE]
print(f"Housecode: {housecode}, Unitcode: {unitcode}")
user_input = {CONF_DEVICE: "Housecode: C, Unitcode: 4"}
result, _ = await _options_form(hass, result["flow_id"], user_input)
@ -547,11 +542,6 @@ async def test_options_remove_x10_device_with_override(hass: HomeAssistant):
config_entry.add_to_hass(hass)
result = await _options_init_form(hass, config_entry.entry_id, STEP_REMOVE_X10)
for device in config_entry.options[CONF_X10]:
housecode = device[CONF_HOUSECODE].upper()
unitcode = device[CONF_UNITCODE]
print(f"Housecode: {housecode}, Unitcode: {unitcode}")
user_input = {CONF_DEVICE: "Housecode: C, Unitcode: 4"}
result, _ = await _options_form(hass, result["flow_id"], user_input)

View file

@ -538,7 +538,6 @@ async def test_shabbat_times_sensor(
for sensor_type, result_value in result.items():
if not sensor_type.startswith(language):
print(f"Not checking {sensor_type} for {language}")
continue
sensor_type = sensor_type.replace(f"{language}_", "")

View file

@ -37,7 +37,6 @@ async def test_setup_adds_proper_devices(hass):
for i, model in enumerate(mfi.SWITCH_MODELS)
}
ports["bad"] = mock.MagicMock(model="notaswitch")
print(ports["bad"].model)
mock_client.return_value.get_devices.return_value = [
mock.MagicMock(ports=ports)
]

View file

@ -21,8 +21,6 @@ from homeassistant.setup import async_setup_component
from tests.common import assert_setup_component
"""Tests for setting up the REST switch platform."""
NAME = "foo"
DEVICE_CLASS = SwitchDeviceClass.SWITCH
METHOD = "post"
@ -101,7 +99,6 @@ async def test_setup_query_params(hass, aioclient_mock):
)
await hass.async_block_till_done()
print(aioclient_mock)
assert aioclient_mock.call_count == 1

View file

@ -262,7 +262,6 @@ async def test_stream_keepalive(hass):
cur_time = 0
def time_side_effect():
print("stream.available=%s", stream.available)
nonlocal cur_time
if cur_time >= 80:
stream.keepalive = False # Thread should exit and be joinable.