def mock_roomnames(): with patch("fah.pfreeathome.get_room_names", return_value={"00": { "00": "room1", "01": "room2" }}): yield
def mock_init(): with patch("fah.pfreeathome.Client.__init__", return_value=None): yield